Get value Cientside

2 posts, 0 answers
  1. Voss Grose
    Voss Grose avatar
    81 posts
    Member since:
    Sep 2012

    Posted 15 Feb 2009 Link to this post

    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?
  2. Tsvetie
    Tsvetie avatar
    1517 posts

    Posted 18 Feb 2009 Link to this post

    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()]; 

    All the best,
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
Back to Top