If you have technical questions, please create a support ticket in the DevExpress Support Center.
Create a RangeSlider
To create a RangeSlider, declare it in markup and specify the following four properties:
You can see the resulting RangeSlider in the Default mode section of this demo.
Customize RangeSlider Appearance
The RangeSlider can display labels for the min and max values. To configure the labels, use the label object. In this object, set the visible property to true
to display the labels. You can also specify the position and format properties.
The RangeSlider can also display a tooltip for slider handles. To display tooltips, you need to configure the tooltip object:
-
Set the enabled property to
true
to display tooltips. -
Specify the tooltip position.
-
Specify the format property.
-
Assign 'onHover' or 'always' to the showMode property to change how the component shows tooltips.
Use the showRange property to specify if the selected range should be highlighted. You can also use the step property to specify the value change step for the RangeSlider.
If you want to disable the RangeSlider, set the disabled property to true
.
Handle the Value Change Event
Specify the onValueChanged function to handle the value change. In this demo, the NumberBox components and the RangeSlider use this property to exchange values.
The valueChangeMode property allows you to choose when to change the RangeSlider value and supports the onHandleMove
and onHandleRelease
modes. You can see the property's effect in the Process Value Changes section. The first RangeSlider changes its value every time a user slides the handle. The second RangeSlider changes its value only when the handle is released. These RangeSlider values are synchronized.