Specify custom values โ€‹โ€‹for the AjaxControlToolkit slider extender

I am using MultiHandleSliderExtender from AjaxControlToolkit. I was looking for a way to specify custom values โ€‹โ€‹for the slider extender:

 <act:MultiHandleSliderExtender ID="mseTimeline" runat="server" BoundControlID="lblSlider" Minimum="1600" Maximum="1680" TooltipText="Slide across timeline" TargetControlID="ebSlider" Decimals="0" RaiseChangeOnlyOnMouseUp="true" OnClientDragEnd="scrollToYear"> </act:MultiHandleSliderExtender> 

Instead of specifying 1600-1680, the slider should be bound to specific step values, such as 1600, 1630, 1640, 1645, 1650, 1656, and so on until 1680. Does anyone know a way to achieve this?

Any help would be greatly appreciated.

+4
source share
1 answer

Try adding the Steps="" code to your MultiHandleSliderExtender?

How many steps you add to the slider changes the number of handles associated with the rail.

Hope this helps.

 <act:MultiHandleSliderExtender ID="mseTimeline" runat="server" BoundControlID="lblSlider" Minimum="1600" Maximum="1680" Steps="6" TooltipText="Slide across timeline" TargetControlID="ebSlider" Decimals="0" RaiseChangeOnlyOnMouseUp="true" OnClientDragEnd="scrollToYear"> </act:MultiHandleSliderExtender> 
0
source

Source: https://habr.com/ru/post/1391064/


All Articles