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

RadToolTip Formatting Contents

1 Answer 90 Views
ToolTip
This is a migrated thread and some comments may be shown as answers.
TheBigCheese
Top achievements
Rank 2
TheBigCheese asked on 21 Oct 2011, 03:10 PM
Hi, i have a RadSlider with a  RadToolTip attached. But i need to format the text that is being sent to the tooltip.

Eg: "1000" to "1,000".


How can i achieve this?


Best Regards,
Vitor Monteiro

1 Answer, 1 is accepted

Sort by
0
Marin Bratanov
Telerik team
answered on 26 Oct 2011, 07:39 AM
Hello Vitor,

What I can advise is that you use JavaScript to modify the text in the tooltip via its client-side api. For example in the OnClientShow event you can use the RadToolTip's method get_text() to obtain the text from the tooltip (of course any other means works equally well, this depends on the way you pass this text). Then modify it via JavaScript and use set_text() to pass it back to the tooltip. You may find useful this article from the net and this one as well on working with strings.


All the best,
Marin
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now
Tags
ToolTip
Asked by
TheBigCheese
Top achievements
Rank 2
Answers by
Marin Bratanov
Telerik team
Share this question
or