Slider range + client documenation

2 posts, 1 answers
  1. Bryan Brannon
    Bryan Brannon avatar
    65 posts
    Member since:
    Aug 2012

    Posted 02 Sep 2008 Link to this post

    I am using the following slider on a web-form:
    <telerik:RadSlider ID="RadSlider1" runat="server" OnClientValueChange="HandleValueChange" IsSelectionRangeEnabled="true"  /> 

    and would like to update two textboxes with each of the slider handle values something like this:
    function HandleValueChange(sender, eventArgs)  
        // not sure how to tell the difference b/w the two  
        var handle1 = sender.get_activeHandle();  
        var handle2 = sender.get_activeHandle();  
        $get("<%=TextBox1.ClientID %>").value = handle1.get_value();  
        $get("<%=TextBox2.ClientID %>").value = handle2.get_value();  

    Any code samples or documentation on get_activeHandle() or client API for RangeSliders?
  2. Answer
    Petio Petkov
    Petio Petkov avatar
    825 posts

    Posted 03 Sep 2008 Link to this post

    Hello Bryan Brannon,

    You should use get_selectionStart() and get_selectionEnd() client-side methods, e.g.
    $get("<%=TextBox1.ClientID %>").value =$find("RadSlider1").get_selectionStart(); 
    $get("<%=TextBox2.ClientID %>").value =$find("RadSlider1").get_selectionEnd();

    A simple example which illustrates this methods is available  here:

    We are currently improving the documentation and all client methods will be available in the next RadControls for ASP.NET AJAX release.

    All the best,
    Petio Petkov
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Back to Top