Selection Value Configuration

Various customization options are available to configure the selection value in SfRangeSlider.

Set Minimum Value

Gets or sets the minimum possible value of the range. The thumb could not move beyond that value.

rangeSlider.Minimum = 0;

Set Maximum Value

Gets or sets the maximum possible value of the range. The thumb could not move after that value.

rangeSlider.Maximum = 24;

Set Tick Frequency

The TickFrequency property is used to decide the number of ticks to be displayed along the track based on Minimum and Maximum values.

rangeSlider.TickFrequency=4;

NOTE

When the SnapsTo property is set to Ticks, the TickFrequency is used to specify the interval between snap points.

Set Interval between Snap Points.

The StepFrequency property is used to specify the interval between snap points.

rangeSlider.StepFrequency=4;

NOTE

When the SnapsTo property is set to StepValues, the StepFrequency property is enabled.

Set Snapping Mode

The SnapsTo property determines whether the RangeSlider snaps to steps or ticks. Available options for this property are

  • StepValues - The StepFrequency property will be used to specify the interval between snap points.

  • Ticks - The TickFrequency property will be used to specify the interval between snap points

  • None - The thumb is moved independent of any values.

NOTE

The default option is Ticks.

rangeSlider.SnapsTo = SFSnapsTo.SFSnapsToTicks;