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

Tooltips in Hierarchical Grids

5 Answers 147 Views
ToolTip
This is a migrated thread and some comments may be shown as answers.
Omarr
Top achievements
Rank 1
Omarr asked on 27 Feb 2009, 09:38 PM
I have a hierarchical grid with an image button as the first column on both parent and child. Now I want to show a tooltip , which is a usercontrol with a databound grid inside and couple of labels.  This grid inside a usercontrol is populated based on the ID of the row of the grid where the image button is clicked. Also the image button sends 2 other values which updates the text of the label controls. Child grid also has an image button which when clicked, pop ups the same user control and sends the ID to the popup, populates the grid inside and sends 2 other values which updates the text in the label. How do I achieve this? Don't have a working solution, so guide me with the working sample code. Thanks.

5 Answers, 1 is accepted

Sort by
0
Omarr
Top achievements
Rank 1
answered on 03 Mar 2009, 09:50 PM
?
0
Princy
Top achievements
Rank 2
answered on 04 Mar 2009, 09:22 AM
Hello Omarr,

You can display a window rather than a tooltip, on clicking the imagebutton in the grid, as a tooltip is generally displayed on mouse over. Check out the demo link given below which you may find helpful provides an example of displaying a window on click of a button, how to keyvalues are passed to the the new window and also retrieve cell values from the grid source which correspond to the keyvalue and display them in textboxes.
Window Editing


Hope this helps...
-Princy.

0
Svetlina Anati
Telerik team
answered on 04 Mar 2009, 09:29 AM
Hi Omarr,

The easiest way to tooltipify a hierarchical grid is by using a separate tooltip in an item template. You can put the user control directly in the tooltip and populate it with data in the item databound event.

For your convenience I attached a sample demo which can be used as a start point for your implementation. In case you need further assistance, please prepare a sample, fully runnable demo which shows your configuration, open a new support ticket and send it to me along with detailed explanations. Once I receive it and I have a better understanding on your exact setup I will do my best to help.

Best wishes,
Svetlina
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Steven
Top achievements
Rank 1
answered on 14 Jul 2011, 08:34 PM
I need to do the same thing but instead of text, load a custom control. What is the best way?
0
Marin Bratanov
Telerik team
answered on 19 Jul 2011, 12:47 PM
Hi Steven,

  You can examine the project Svetlina attached to the previous post 2 years ago and use the same appraoch, just declare the markup between its tags and not in the Text property. This, however, would weigh down the markup, so you could also use the RadToolTipManager and its OnAjaxUpdate event to load a user control dynamically inside the tooltip (please examine this online demo for a better view of the LOD functionality).


Greetings,
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
Omarr
Top achievements
Rank 1
Answers by
Omarr
Top achievements
Rank 1
Princy
Top achievements
Rank 2
Svetlina Anati
Telerik team
Steven
Top achievements
Rank 1
Marin Bratanov
Telerik team
Share this question
or