Quantcast
Channel: Telerik Forums RSS
Viewing all articles
Browse latest Browse all 94857

RadSlider draghandle rule

$
0
0
Hi Marc,

By default the drag handle of RadSlider is moved one tick at a time and the number of ticks and their type depend on the value of the SmallChange and LargeChange properties as described in the following demo: http://demos.telerik.com/aspnet-ajax/slider/examples/ticks/defaultcs.aspx

As for allowing the slider value only to be incremented, you can use the OnClientValueChanging event for this purpose: http://www.telerik.com/help/aspnet-ajax/slider-client-side-onclientvaluechanging.html. First, you can compare the results of the get_oldValue and the get_newValue method of the event arguments parameter. If the old value is greater than the new value of the slider (the value is decreased), you can call set_cancel(true) similarly to the example in the help article and the value of the slider will not change.

Regards,
Slav
Telerik
 

See What's Next in App Development. Register for TelerikNEXT.

 

Viewing all articles
Browse latest Browse all 94857

Trending Articles