Dynamically Change tooltip in JavaScript

3 posts, 0 answers
  1. Orest
    Orest avatar
    31 posts
    Member since:
    Apr 2009

    Posted 06 Mar 2010 Link to this post

    1.    I have a textbox with a tooltip
    2.    I have a RadToolTipManager with AutoTooltipify="true" that show that tooltip
    3.    I have a  RadComboBox. On clientchange event I need to change a tooltip in the textbox.

    What is the best way to do this?

    Thank you!
  2. Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 08 Mar 2010 Link to this post

    Hello Orest,

    Using set_text() method of RadToolTip client object, you can set the text of tooltip from client side.

    Checkout the following documentation for most important client side properties and methods.

    RadToolTip Client Object


  3. Svetlina Anati
    Svetlina Anati avatar
    2795 posts

    Posted 10 Mar 2010 Link to this post

    Hello Orest,

    You can use the set_text method as Shinu suggested if you want to set different text. Another option is to use the set_contentElement method and set an element (e.g DIV) which holds the content for content. Note that if you want to also use this method for the very first content of the tooltip, you should call it after show() because the tooltip has lazy initialization and the UI will not be created before that. If you want to show the tooltip with some content already the first time, next time you use set_contentElement to change content is OK to be before show().

    All the best,
    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.
Back to Top