RadToolTipManager in RadGrid DetailTable

2 posts, 0 answers
  1. Steven
    Steven avatar
    2 posts
    Member since:
    Jul 2011

    Posted 14 Jul 2011 Link to this post

    I have a solution similiar to the outlined example here: http://demos.telerik.com/aspnet-ajax/controls/examples/integration/tooltipgrid/defaultcs.aspx?product=tooltip

    However, I would like to have a mouseover tooltip within the detail rows as well.

    Adding the controls of the master table view to the tooltip manager works fine. Adding the controls of the detail table also works but the tooltip doesn't work. In viewing the source of the web page, I noticed that the TargetControls for my detail rows was empty. Also, I could not find the detail row information in the view source. The same thing happens with the example above.

    If you expand Bigfoot Breweries and do a view source on the page, you will find Bigfoot Breweries but you cannot find Laughing Lumberjack Lager (which is one of the detail rows). I think once I get the detail rows to be persisted on the page, the tooltip manager will work.

    Any ideas?

  2. Marin Bratanov
    Marin Bratanov avatar
    3907 posts

    Posted 19 Jul 2011 Link to this post

    Hi Steven,

    The nested tables are rendered on demand and they are not present when the page is initially loaded. This means that the RadToolTipManager cannot attach its client-side events to these non-existing elements. What I would suggest is that you attach the tooltips dynamically when the rows are expanded as shown in the following demo: http://demos.telerik.com/aspnet-ajax/tooltip/examples/targetcontrolsandajax/defaultcs.aspx (the grid has no hierarchy here, yet it shows the approach on adding tooltips to a grid). Please note that you need either the element id or a direct reference to the element that should be tooltipified. You can use the ItemCreated event of the RadGrid and apply the same logic as in the demo when the child tables are created (for example distinguishing them by name).

    All the best,
    the Telerik team

    Register for the Q2 2011 What's New Webinar Week. Mark your calendar for the week starting July 18th and book your seat for a walk through of all the exciting stuff we will ship with the new release!

Back to Top