ToolTipManager Proxy or GetCurrent()

3 posts, 1 answers
  1. DGDev
    DGDev avatar
    42 posts
    Member since:
    Jul 2012

    Posted 28 May 2010 Link to this post

    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.


  2. Answer
    Svetlina Anati
    Svetlina Anati avatar
    2795 posts

    Posted 02 Jun 2010 Link to this post

    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,
    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.
  3. DGDev
    DGDev avatar
    42 posts
    Member since:
    Jul 2012

    Posted 09 Jun 2010 Link to this post

    Thank you Svetlina. That was a very informative response and much appreciated.
Back to Top