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

ToolTipManager Proxy or GetCurrent()

2 Answers 19 Views
ToolTip
This is a migrated thread and some comments may be shown as answers.
DGDev
Top achievements
Rank 2
DGDev asked on 28 May 2010, 06:42 PM
After working quite a bit with AjaxManager and ScriptManager I've gotten to love the Proxy additions of both controls as well as being able to easily get the current control when need be.

I thought the same would apply to ToolTipManager, however I was mistaken.  Was there a reason this path was not taken when designing the component?

I checked the Page.Items collection and noticed ToolTipManager is not even added like both of the above mentioned controls.  If you have any advice on using the Manager control on the root MasterPage and allowing the child pages to make use of it please share.  I would hate to think I have to use some FindControl(), whenever I need access to it.  That seems rather short-sighted.

Thanks,

Daniel

2 Answers, 1 is accepted

Sort by
0
Accepted
Svetlina Anati
Telerik team
answered on 02 Jun 2010, 01:06 PM
Hi DGDev,

Straight to your questions:

1) We have not implemented the RadToolTipManager as the RadAjaxManager and the ScriptManager due to the following reasons:
      - we can have more than one manager on the same page - e.g using with different zones
      - it is absolutely valid scenario to want many different tooltips with different settings on the same page as well as on different content pages with the same Masterpage.

2) The RadToolTipManager is as all other controls and thus it is not added to the Items collection by default. You can test with standard RadControls as well and you will see that they are not added there because this is not needed in the general scenario. However, you can implement your own collection or use other general ASP.NET to pass the needed information.

3) The general manner is to use FindControl but ASP.NET provides other mechanisms to achieve what you want - e.g you can store the manager object in the Session object, etc. Note, that this is a general Master-Content scenario and you can implement what you need for example with a standard button - once you reference it in the desired manner just use the very same logic for the RadToolTipManager.

On a side note, you can also simply add additional RadTooltipManagers in your content page where needed - this will not affect the performance significantly.

I hope that my reply is detailed enough and helpful, let me know how it goes.

Best wishes,
Svetlina
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.
0
DGDev
Top achievements
Rank 2
answered on 09 Jun 2010, 03:11 PM
Thank you Svetlina. That was a very informative response and much appreciated.
Tags
ToolTip
Asked by
DGDev
Top achievements
Rank 2
Answers by
Svetlina Anati
Telerik team
DGDev
Top achievements
Rank 2
Share this question
or