Slider ClientSlideEnd

1 Answer 5 Views
Ajax Slider
Gianluca
Top achievements
Rank 1
Gianluca asked on 15 Nov 2021, 02:48 PM

This is my ajax web form Slider

            sli.MaximumValue = 100;
            sli.MinimumValue = 0;
            sli.OnClientSlideEnd = "ClientSlideEnd";
            sli.Width =410;
            sli.Style.Add(HtmlTextWriterStyle.Display, "inline-block");
            sli.ItemType = SliderItemType.Tick;
            sli.ThumbsInteractionMode = SliderThumbsInteractionMode.Free;in 

in client side CliendSlideEnd function I call a server side sub, when I slide the thumb, I have only one thumb, the control works fine, It fires correctly the SlideEnd event and I can retrieve the new value, but If I click on slider, rather than slide, the ClientSlideEnd doesn't fires; So I've tried to use ClientSlideValueChanged but it fires too much time when I slide the thumb, any suggestions?

Thanks a lot

1 Answer, 1 is accepted

Sort by
0
Vessy
Telerik team
answered on 17 Nov 2021, 05:09 PM

Hi Gianluca,

I have just answered your support ticket on the matter, for convenience I am copying my answer here as well:

The LiveDrag property of the Slider is enabled by default, thus its value is changed all the time while the slider is dragged. You can disable that functionality by setting the LiveDrag="false", to the OnClientValueChanged will be fired when the drag handle is released:
        <telerik:RadSlider ID="sli" runat="server"
            LiveDrag="false" OnClientValueChanged="onValueChanged">
        </telerik:RadSlider>

Regards,
Vessy
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

Tags
Ajax Slider
Asked by
Gianluca
Top achievements
Rank 1
Answers by
Vessy
Telerik team
Share this question
or