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

RadToolTipManager in RadGrid DetailTable

1 Answer 76 Views
ToolTip
This is a migrated thread and some comments may be shown as answers.
Steven
Top achievements
Rank 1
Steven asked on 14 Jul 2011, 09:07 PM
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?



1 Answer, 1 is accepted

Sort by
0
Marin Bratanov
Telerik team
answered on 19 Jul 2011, 12:39 PM
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,
Marin
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!

Tags
ToolTip
Asked by
Steven
Top achievements
Rank 1
Answers by
Marin Bratanov
Telerik team
Share this question
or