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

Tooltip in GridHyperLinkColumn

2 Answers 160 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Ti
Top achievements
Rank 1
Ti asked on 18 Jan 2010, 12:33 PM
Hi there!
I've got a RadGrid with a GridHyperlinkColumn and a dynamic RadToolTip on it. My question: Is it possible to disable the HTML-title-Tag of this hyperlinks, so I have only the RadToolTip? It would be awesome... ;)

Thanks.

2 Answers, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 18 Jan 2010, 01:13 PM
Hi,

You can try out the following code to remove the html tooltip for the HyperLinkColumn:
c#:
protected void RadGrid1_ItemDataBound(object sender, Telerik.Web.UI.GridItemEventArgs e) 
    { 
        if (e.Item is GridDataItem) 
        { 
            GridDataItem dataItem = (GridDataItem)e.Item; 
           ((HyperLink)dataItem["HyperLinkColumnUniqueName"].Controls[0]).ToolTip = ""
        } 
    } 
 

Thanks
Princy.
0
Ti
Top achievements
Rank 1
answered on 18 Jan 2010, 01:25 PM
OMG. ;) Didn't see the simplest solution...
Thanks, Princy!
Tags
Grid
Asked by
Ti
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Ti
Top achievements
Rank 1
Share this question
or