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

[Solved] tooltip in Columnheader

3 Answers 138 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Christian
Top achievements
Rank 1
Christian asked on 27 Apr 2009, 11:15 AM
How can I set a tooltip in a Columnheader?

thanks

Christian

3 Answers, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 27 Apr 2009, 11:34 AM
Hello,

You can try out the following code to set teh ToolTip For a column header:
c#:
protected void RadGrid1_ItemDataBound(object sender, GridItemEventArgs e) 
    { 
        if (e.Item is GridHeaderItem) 
        { 
            GridHeaderItem header = (GridHeaderItem)e.Item; 
            header["ColumnUniqueName"].ToolTip = "Text"
        } 
    } 

Thanks
Princy.
0
Christian
Top achievements
Rank 1
answered on 27 Apr 2009, 11:42 AM
thank's

I need to set the Columnname into the Tooltip.

How ca I get the Columnname in the event ItemDataBound?

Thanks

Christian
0
Accepted
Daniel
Telerik team
answered on 27 Apr 2009, 11:44 AM
Hello Christian,

Please examine the attached demo which illustrates how to add RadToolTip to the RadGrid header.

Let us know whether this helps.

Kind regards,
Daniel
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
Grid
Asked by
Christian
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Christian
Top achievements
Rank 1
Daniel
Telerik team
Share this question
or