MVC5 Classic
Set Range

The default value for the range option is "false".  The range option detects whether or not you have two handles and  creates a stylable range element between the two, if you have them.  See the Slider > Range sample of the MVC Control Explorer live demo at http://demo.componentone.com/ASPNET/MVCExplorer/slider/Range.

  1. Go to the Layout.cshtml file and find the script you used to initialize the widget.
  2. Find the range option and set it to "true".
  3. Find the value option and set it to values: [25, 50]. This gives the slider the location of the two handles.
  4. Run your program. The wijslider should resemble the following image:

 

 


Copyright (c) GrapeCity, inc. All rights reserved.

Product Support Forum |  Documentation Feedback