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

ToolTip and GridHyperLinkColumn in RadGrid

3 Answers 315 Views
ToolTip
This is a migrated thread and some comments may be shown as answers.
lhalfon
Top achievements
Rank 1
lhalfon asked on 30 Aug 2007, 09:26 PM
Hi!

How i can createa tooltip for a link inside a GridHyperLinkColumn in the code behind (dinamic) ??

Thanks!

3 Answers, 1 is accepted

Sort by
0
Tsvetie
Telerik team
answered on 03 Sep 2007, 01:21 PM
Hello lhalfon,
You can use the following code in the ItemDataBound handler to create the RadToolTip, where "hpHyperLink1" is the ID of your HyperLink:

RadToolTip tooltip = new RadToolTip();  
tooltip.ID = "RadToolTip1";  
tooltip.TargetControlID = hpHyperLink1.ClientID;  
tooltip.IsClientID = true;  
tooltip.Text = hpHyperLink1.Text;  
tooltip.ShowEvent = ToolTipShowEvent.OnClick; 

and once you have created it, just add it to the Controls collection of the cell containing the HyperLink.

Kind regards,
Tsvetie
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
lhalfon
Top achievements
Rank 1
answered on 03 Sep 2007, 03:02 PM
But I've an GridHyperLinkColumn
Thanks.
0
Tsvetie
Telerik team
answered on 04 Sep 2007, 05:03 PM
Hi lhalfon,
I am afraid I cannot understand what the problem is. Can you please describe it in detail and perhaps provide some sample code to illustrate it?

Kind regards,
Tsvetie
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
ToolTip
Asked by
lhalfon
Top achievements
Rank 1
Answers by
Tsvetie
Telerik team
lhalfon
Top achievements
Rank 1
Share this question
or