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

Dynamically created tooltip inside a radgrid

2 Answers 194 Views
ToolTip
This is a migrated thread and some comments may be shown as answers.
andieje
Top achievements
Rank 1
andieje asked on 16 Jun 2009, 03:21 PM
Hello

I'm using rad q3 2008

I would like to implement what i think must be a fairly common scenario but i can't find anything on how to do it in the documentation.

I have a datagrid and one of the columns contains a hyperlink. When the user hovers over the hyperlink I would like a tooltip to be displayed.

The tooltip inside the radgrid row is created dynamically so I don't know how to add it to the target controls collection of the tool tip manager

I tried this but to no avail in the item data bound event of the grid

 

Dim tip As RadToolTip = e.Item.FindControl("tipStartAddress")

 

RadToolTipManager1.TargetControls.Add(tip.ClientID,

True)

Furthermore once i have got this bit to work I would like to have the tooltip load its content on demand. I really don't know how i would trigger an OnAjaxUpdate event for a tooltip and add controls to it on the server.

Also, the documenation only talks about the radtooltip with an updatepanel. I use radajax now. I presume you can use a tooltip with rad ajax

many thanks in advance

 

2 Answers, 1 is accepted

Sort by
0
andieje
Top achievements
Rank 1
answered on 16 Jun 2009, 03:38 PM
What's even more frustrating is that my documentation for q3 2008 for the tool tip says i should use the ajaxupdate event of the control but the control doesn't even that event. It only has ajaxrequest. That's really not very good is it?
0
Tervel
Telerik team
answered on 17 Jun 2009, 07:30 AM
Hello Andieje,

The documentation about RadToolTipManager is correct. The event is called OnAjaxUpdate.
Also, there are some important differences between RadToolTip and RadToolTipManager (one being that the former has no built-in AJAX capabilities, while the latter does).
Here are a couple of demos which demonstrate the use of RadToolTipManager + load on demand, as well as the differences between RadToolTip and RadToolTipManager.
http://demos.telerik.com/aspnet-ajax/tooltip/examples/tooltipversustooltipmanager/defaultcs.aspx

http://demos.telerik.com/aspnet-ajax/tooltip/examples/loadondemand/defaultcs.aspx


Best regards,
Tervel
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.
Tags
ToolTip
Asked by
andieje
Top achievements
Rank 1
Answers by
andieje
Top achievements
Rank 1
Tervel
Telerik team
Share this question
or