This is a migrated thread and some comments may be shown as answers.
Slider in Grid Update Client side
1 Answer 5 Views
This is a migrated thread and some comments may be shown as answers.
Ken
Top achievements
Rank 1
Ken asked on 30 Apr 2014, 03:25 PM
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.

1 Answer, 1 is accepted

Sort by
0
Marin Bratanov
Telerik team
answered on 05 May 2014, 10:14 AM

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.

 
Asked by
Ken
Top achievements
Rank 1
Answers by
Marin Bratanov
Telerik team
Share this question
or