Slider in Grid Update Client side

2 posts, 0 answers
  1. Ken
    Ken avatar
    18 posts
    Member since:
    Nov 2010

    Posted 30 Apr 2014 Link to this post

    See attached... Slider is in a child grid of a RadGrid. What I need is when the slider is moved to update the start or length text boxes.
  2. Marin Bratanov
    Admin
    Marin Bratanov avatar
    3602 posts

    Posted 05 May 2014 Link to this post

    Hi Ken,

    You can use the OnClientValueChanged event (http://www.telerik.com/help/aspnet-ajax/slider-client-side-onclientvaluechanged.html) to:

    1. traverse the HTML to get the parent cell (each control offers a get_element() method that will return its HTML wrapper, so you can traverse the nodes hierarchy)
    2. get the textbox controls inside (elem.control is this reference where elem is the HTML element that wraps the textbox)
    3. use their client-side API (http://www.telerik.com/help/aspnet-ajax/input-client-side-radnumerictextbox.html) to change their values

    You can inspect the rendered HTML to see what classes and elements are used to build your jQuery selectors.


    Regards,

    Marin Bratanov
    Telerik
     

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

     
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top