Dynamic DragText

2 posts, 0 answers
  1. Frank
    Frank avatar
    10 posts
    Member since:
    Nov 2008

    Posted 20 Apr 2010 Link to this post

    I would like to display the current value of the slider in it's DragText. How do I dynamically change the slider control's DragText?
  2. Tsvetie
    Admin
    Tsvetie avatar
    1517 posts

    Posted 23 Apr 2010 Link to this post

    Hello Frank,
    You can use the client-side API of the slider control to achieve the described result:
    <telerik:RadSlider ID="RadSlider1" runat="server" DragText="0" OnClientValueChanged="OnClientValueChanged">
    </telerik:RadSlider>
    <script type="text/javascript">
        function OnClientValueChanged(sender,args)
        {
            sender.set_dragText(sender.get_value());
        }
    </script>

    All the best,
    Tsvetie
    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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top