Slider region margins

3 posts, 0 answers
  1. Dimo
    Dimo avatar
    24 posts
    Member since:
    Nov 2008

    Posted 19 Feb 2010 Link to this post

    I want to get the values of RadSlider range in client side (on onClientValuechanged) and to set this values to simple input text fields.
    How is possible to do this crossbrowser?
  2. Dimo
    Dimo avatar
    24 posts
    Member since:
    Nov 2008

    Posted 20 Feb 2010 Link to this post

    function OnClientValueChanging(sender, args) {<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; // Show the tooltip only while the slider handle is sliding. In case the user simply clicks on the track of the slider to change the value<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; // the change will be quick and the tooltip will show and hide too quickly.<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if (!isSliding) return;<br><br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; var tooltip = $find("&lt;%= RadToolTip1.ClientID %&gt;");<br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; tooltip.set_text(args.get_newValue() );<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; document.forms[0].txtSelectionStart.value = sender.get_selectionStart() ;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; document.forms[0].txtSelectionEnd.value =&nbsp; sender.get_selectionEnd() ;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<br> 

    Could I use one OnClientValueChanging procedure for few sliders in one page, and to determinate in it which is the name of the caller slider, to assign the slider values to different text field on the client, but without using server-side execution, only on the client, using javascript?
  3. Tsvetie
    Tsvetie avatar
    1517 posts

    Posted 22 Feb 2010 Link to this post

    Hi Dimo,
    You can check which slider raised the event the following way:
    <telerik:RadSlider ID="RadSlider1" runat="server" OnClientValueChanging="OnClientValueChanging">
    <script type="text/javascript">
    function OnClientValueChanging(sender, args)

    Kind regards,
    the Telerik team

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Back to Top