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

Data-driven tooltip inside a nested radgrid

1 Answer 52 Views
ToolTip
This is a migrated thread and some comments may be shown as answers.
Shawn
Top achievements
Rank 1
Shawn asked on 14 Apr 2015, 06:12 PM

Hello,

 I have a Master RadGrid that has a nested (child) RadGrid inside its NestedViewTemplate.  The nested RadGrid contains multiple GridTemplateColumns.  Inside one of these GridTemplateColumns I have a LinkButton (or it can it a label, it doesn't matter).  I am trying to create a scenario where when the user's mouse rolls over this LinkButton a ToolTip appears that will display information about the specific LinkButton text, and when the user rolls away the tooltip disappears.  The information on the tooltip will be obtained from a database query that will require an ID to be passed to it as a parameter.

I have seen a few examples of using the ToolTipManager and binding it to specific controls in a RadGrid, but none of the examples cover "Nested" RadGrids or how to send parameters.  I've seen an example where it's possible to open a WebUserControl inside a ToolTip, but I have not been able to get it to work.

Is what I want to do even possible or do I have to use something like a RadWindow or JavaScript?  I'd rather use the Telerik controls if possible.  I'd really appreciate any help (such as an example code).

Thanks.

1 Answer, 1 is accepted

Sort by
0
Accepted
Marin Bratanov
Telerik team
answered on 16 Apr 2015, 10:54 AM

Hello Shawn,

Here is the basic scenario that you need: http://demos.telerik.com/aspnet-ajax/tooltip/examples/targetcontrolsandajax/defaultcs.aspx?product=tooltip. Using a nested grid should not be an issue.

You can start from this example and use the same approach for the nested grid: http://demos.telerik.com/aspnet-ajax/grid/examples/hierarchy/hierarchy-with-templates/defaultcs.aspx.

I am attaching here a simplified version that combines both demos for your convenience. To run it, you would need to get the connection strings and databases from our demos.

Regards,

Marin Bratanov
Telerik
 

See What's Next in App Development. Register for TelerikNEXT.

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