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

ToolTip in Slider

2 Answers 78 Views
Slider
This is a migrated thread and some comments may be shown as answers.
Duraisamy
Top achievements
Rank 1
Duraisamy asked on 28 May 2009, 09:59 AM
Hi,
I would like to use the radtooltip control in the radslider control.
When I drag the slider, the tooltip should be displayed.
How can I do this?
Can help me?

2 Answers, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 28 May 2009, 11:25 AM
Hello Duraisamy,

You can try out the following code to display a ToolTip when the slider is dragged:
aspx:
<telerik:RadSlider ID="RadSlider1"   OnClientValueChange="ValueChange" runat="server" /> 
 <telerik:RadToolTip ID="RadToolTip1"  TargetControlID="RadSlider1" RelativeTo="Element" Text="CustomText"  runat="server"
 </telerik:RadToolTip> 

js:
function ValueChange(sender, eventArgs) 
                {              
                     
                    var tooltip = $find("<%=RadToolTip1.ClientID %>");                 
                    tooltip.show(); 
                } 

Thanks
Princy.
0
Svetlina Anati
Telerik team
answered on 28 May 2009, 02:10 PM
Hi Duraisamy,

The approach Princy provided is correct and I recommend to use it. You should also set ShowEvent="FromCode" for the tooltip because you are showing it by code and otherwise it will show on hover, too, which is not desired in this case.

Sincerely yours,
Svetlina
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.
Tags
Slider
Asked by
Duraisamy
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Svetlina Anati
Telerik team
Share this question
or