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

Two ToolTipManagers on one page?

2 Answers 105 Views
ToolTip
This is a migrated thread and some comments may be shown as answers.
Software
Top achievements
Rank 1
Software asked on 27 Apr 2011, 05:30 PM
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:
MasterPage 
    Page.aspx  
        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!
Eddie

2 Answers, 1 is accepted

Sort by
0
Accepted
Svetlina Anati
Telerik team
answered on 02 May 2011, 12:47 PM
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. 

Greetings,
Svetlina
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.

0
Software
Top achievements
Rank 1
answered on 03 May 2011, 04:45 PM
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!
Tags
ToolTip
Asked by
Software
Top achievements
Rank 1
Answers by
Svetlina Anati
Telerik team
Software
Top achievements
Rank 1
Share this question
or