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

GridHyperLinkColumn how to set Title or tooltip?

3 Answers 225 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Jafin
Top achievements
Rank 2
Jafin asked on 09 Mar 2009, 04:53 AM
With a GridHyperLinkColumn do you go about setting the href title tag (to show as a tooltip in IE). 
I can Only See how to set the column heading.  

The end result is to set a generic title like "Click here for more detail"  on the Text rendered as the hyperlink for the column.

I am using Q3 2008.

Thanks,
Jason

3 Answers, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 09 Mar 2009, 08:50 AM
Hi,

You can set the Text property of the GridHyperLinkColumn to  achieve your result.

<telerik:GridHyperLinkColumn HeaderText="Links"  
                            NavigateUrl="http://www.google.com" Text="Click Here" UniqueName="column"
                        </telerik:GridHyperLinkColumn> 


Thanks,
Princy
0
Jafin
Top achievements
Rank 2
answered on 09 Mar 2009, 10:31 PM
Princy,

Sorry I may not of been clear in my explanation.

I wish the text to come from the datasource, but the title tag to be set.
For example when this is rendered in html it would look like.

<a href="/mynavigateurl.htm" title="Click Here">Database field name here</a>

So in Internet Explorer the title attribute renders as a yellow tooltip when hovered across.

Regards,
Jason
0
Princy
Top achievements
Rank 2
answered on 10 Mar 2009, 04:00 AM
Hi,

Here is a link you can refer to

http://www.telerik.com/community/forums/aspnet-ajax/tooltip/tooltip-and-gridhyperlinkcolumn-in-radgrid.aspx

Basically the code adds a RadToolTip to the Hyperlink in the GridHyperLinkColumn . You will have to find the Hyperlink in each cell from code and add the RadToolTip to it.

Thanks,
Princy

Tags
Grid
Asked by
Jafin
Top achievements
Rank 2
Answers by
Princy
Top achievements
Rank 2
Jafin
Top achievements
Rank 2
Share this question
or