This is a migrated thread and some comments may be shown as answers.

Dynamic DragText

1 Answer 60 Views
Slider
This is a migrated thread and some comments may be shown as answers.
Frank
Top achievements
Rank 1
Frank asked on 20 Apr 2010, 11:01 PM
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?

1 Answer, 1 is accepted

Sort by
0
Tsvetie
Telerik team
answered on 23 Apr 2010, 02:50 PM
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.
Tags
Slider
Asked by
Frank
Top achievements
Rank 1
Answers by
Tsvetie
Telerik team
Share this question
or