RadToolTip Formatting Contents

2 posts, 0 answers
  1. TheBigCheese
    TheBigCheese avatar
    3 posts
    Member since:
    Aug 2012

    Posted 21 Oct 2011 Link to this post

    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
  2. Marin Bratanov
    Admin
    Marin Bratanov avatar
    3595 posts

    Posted 26 Oct 2011 Link to this post

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