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

STOP hyperlinkcolumn rendering TITLE attribute

4 Answers 46 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Relative
Top achievements
Rank 1
Relative asked on 22 Sep 2008, 07:42 PM
Hi,

How can I stop the hyperlinkcolumn rendering a title attribute? It seems to default to creating one as the same value as DataTextField. The browser renders the title attribute as a tooltip and it is overlapping my radtooltip!

Thanks,

Leon.

4 Answers, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 23 Sep 2008, 04:33 AM
Hi Leon,

Try removing the HeaderText of the GridHyperLinkColumn.

ASPX:
  <telerik:GridHyperLinkColumn HeaderText="" DataTextField="ProductName"     > </telerik:GridHyperLinkColumn> 
                </Columns> 


Shinu.
0
Relative
Top achievements
Rank 1
answered on 23 Sep 2008, 07:59 AM
Hi,

I saw that answer in another post - that doesn't do anything apart from remove the column heading text - as you would expect. You still get the title attribute rendered with the datatextfieldvalue - plus i want to have a headertextvalue!!!

Leon.
0
Relative
Top achievements
Rank 1
answered on 23 Sep 2008, 08:30 AM
Posted a support ticket. Will reply back here with result.
0
Veli
Telerik team
answered on 24 Sep 2008, 10:19 PM
Hi Leon Mills,

You can programmatically remove the hyperlink tooltip in the ItemDataBound event handler of RadGrid:

void RadGrid1_ItemDataBound(object sender, GridItemEventArgs e) 
    if (e.Item is GridDataItem) 
    { 
        GridDataItem item = e.Item as GridDataItem; 
        (item["HyperlinkColumnName"].Controls[0] as HyperLink).ToolTip = ""
    } 


All the best,
Veli
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
Grid
Asked by
Relative
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Relative
Top achievements
Rank 1
Veli
Telerik team
Share this question
or