Two ToolTipManagers on one page?

3 posts, 1 answers
  1. Eddie
    Eddie avatar
    66 posts
    Member since:
    May 2008

    Posted 27 Apr 2011 Link to this post

    I've got a page that has two different type of UserControls on it.  Each UserControl has a RadToolTipManager, and each one can be used multiple times on the same page.  When that happens, the tooltips load the data, but they disappear as soon as the data is done loading, so the user never sees what is loading.  I think it's clear that I can't have multiple RadToolTipManagers with the same ID on the same page.  But I'm trying to figure out the best way to resolve this...?

    Here's the structure of the page:
            UserControl1.ascx (ToolTipMgr1) 
            UserControl2.ascx (ToolTipMgr2) 
            UserControl2.ascx (ToolTipMgr2)
            UserControl2.ascx (ToolTipMgr2)

    Is there a way for me to out the ToolTipMgr in the Page, or the MasterPage, and then add the target controls to it programmatically from the user controls?  That would allow me to have one ToolTipManager for the entire page...

    Thanks for your help!
  2. Answer
    Svetlina Anati
    Svetlina Anati avatar
    2795 posts

    Posted 02 May 2011 Link to this post

    Hi Eddie,

     Basically, there should not be a problem in using more than one RadToolTipManager on the same page and with the default ClientIDMode, the user control should give each manager a unique ID since it is an INaming Container.

    If you want to have only one RadToolTipManager on your page, you can reference it from inside the user control by using the FindControl method.

    All the above information (about INaming Conatiners, referencing controls, etc) is general ASP.NET and the tooltip manager behaves as any other server control in this context.

    In case you need further assistance, please share fully runnable code along with detailed explanations and we will do our bets to help. 

    the Telerik team

    Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

  3. DevCraft R3 2016 release webinar banner
  4. Eddie
    Eddie avatar
    66 posts
    Member since:
    May 2008

    Posted 03 May 2011 Link to this post

    Thanks Svetlina - I used the FindControl method to get a reference to the ToolTipManager and that seems to be working fine for me.  Thanks again!
Back to Top