RangeSlider

The RangeSlider is a widget that allows an end user to choose a range of numeric values.

Included in: dx.mobile.js, dx.web.js, dx.viz-web.js, dx.all.js
Module: ui/range_slider
Export: default
RangeSlider interactive configuration
Copy Code
Copy to Codepen
$("#rangeslider").dxRangeSlider({
});

You can create the widget using one of the following approaches.

  • jQuery

    JavaScript
    HTML
    $(function () {
        $("#rangeSlider").dxRangeSlider({
            min: 0, max: 100,
            start: 20, end: 60
        });
    });
    <div id="rangeSlider"></div>
  • Angular

    HTML
    <dx-range-slider
        [min]="0" [max]="100"
        [start]="20 [end]="60">
    </dx-range-slider>
  • AngularJS

    HTML
    <div dx-range-slider="{
        min: 0, max: 100,
        start: 20, end: 60
    }"></div>
  • Knockout

    HTML
    <div data-bind="dxRangeSlider: {
        min: 0, max: 100,
        start: 20, end: 60
    }"></div>
  • ASP.NET MVC Controls

    Razor C#
    Razor VB
    @(Html.DevExtreme().RangeSlider()
        .ID("rangeSlider")
        .Min(0).Max(100)
        .Start(20).End(60)
    )
    @(Html.DevExtreme().RangeSlider() _
        .ID("rangeSlider") _
        .Min(0).Max(100) _
        .Start(20).End(60)
    )

Note that DevExtreme widgets require you to link the jQuery library to your application. If you use the Knockout or AngularJS approach, the Knockout or AngularJS library is also required. For detailed information on linking these libraries to your project, refer to the topics in the Installation section.

View Demo

See Also
Show Example:
AngularJS
Knockout
jQuery

Configuration

An object defining configuration options for the RangeSlider widget.

Methods

This section describes members used to manipulate the widget.

Events

This section describes events fired by this widget.

See Also