RadSlider with 2 handlers.

4 posts, 0 answers
  1. Karthik
    Karthik avatar
    9 posts
    Member since:
    Nov 2012

    Posted 22 Nov 2012 Link to this post

    How can I set values for two handlers in a rad slider... When I move my handlers, the respective value of my handler should be displayed.. Can anyone help me??? I do not need the tool tip sample.. I want to display in two textboxes..
  2. Slav
    Admin
    Slav avatar
    1356 posts

    Posted 27 Nov 2012 Link to this post

    Hello Karthik,

    You can use the client-side API of the RadSlider to set its values through textboxes and to update these textboxes when the values of the slider are changed.

    For your convenience I have attached a sample page that demonstrates the suggested approach. Please use it as a reference for implementing the desired functionality.

    All the best,
    Slav
    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Karthik
    Karthik avatar
    9 posts
    Member since:
    Nov 2012

    Posted 28 Nov 2012 Link to this post

    Thank you so much... It was really helpful... My requirement is such that I need to change the handler value with respect to the value I enter into the textbox without using the SET button... Is there any way to do that???
  5. Slav
    Admin
    Slav avatar
    1356 posts

    Posted 03 Dec 2012 Link to this post

    Hi Karthik,

    You can use the JavaScript event onkeyup to pass the textbox value to the slider when a user releases a key. Another option is to handle the JavaScript event onblur when a user leaves the textbox. The function SetValue will be utilized as a handler for the chosen event and the rest of the implementation will be similar to the one in the example from my previous post.

    All the best,
    Slav
    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Back to Top