How can I retrieve the value for a slider on the client side?
I've got the index (sender.get_value()).
can you give an exmaple of how to retrieve the value if I know the index?
1 Answer, 1 is accepted
0
Tsvetie
Telerik team
answered on 18 Feb 2009, 06:26 PM
Hi Voss,
I suppose you have ItemType=Item and that you are trying to get the value of the selected SliderItem, not of the RadSlider itself. If this is the case, you can use the following code:
function GetItemValue()
{
var slider = $find('<%= RadSlider1.ClientID %>');
var selectedItem = slider.get_items()[slider.get_value()];