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

Column chooser tooltips

2 Answers 83 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Andrea
Top achievements
Rank 1
Andrea asked on 16 Dec 2016, 11:39 AM

Hello Telerik Community,

Does anybody know a way to add a tooltip to the column chooser? I know it is not a matter of life or death, but, in one of my projects i condensed a little bit some column header names, and now, when they are on the column chooser nobody, including me, is able to deduce which is the column content :( .

Would be possible to get some reference to the column chooser and add a tooltip to each column?

Best Regards

Andrea

2 Answers, 1 is accepted

Sort by
0
Accepted
Dess | Tech Support Engineer, Principal
Telerik team
answered on 19 Dec 2016, 12:42 PM
Hello Andrea,

Thank you for writing.  

In order to add tooltips to the items in the column chooser, you can subscribe to the RadGridView.ColumnChooserItemElementCreating event and assign the desired tooltip to the ColumnChooserItemElementCreatingEventArgs.ItemElement.ToolTipText property:
public RadForm1()
{
    InitializeComponent();
 
    this.radGridView1.ColumnChooserItemElementCreating+=radGridView1_ColumnChooserItemElementCreating;
}
 
private void radGridView1_ColumnChooserItemElementCreating(object sender,
    Telerik.WinControls.UI.ColumnChooserItemElementCreatingEventArgs e)
{
    e.ItemElement.ToolTipText = e.Column.Name;
}

I hope this information helps. Should you have further questions I would be glad to help.

Regards,
Dess
Telerik by Progress
Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
0
Andrea
Top achievements
Rank 1
answered on 19 Dec 2016, 03:27 PM

Hi Dess, that's great, you saved me a lot of time.

Thank you

Andrea
Tags
GridView
Asked by
Andrea
Top achievements
Rank 1
Answers by
Dess | Tech Support Engineer, Principal
Telerik team
Andrea
Top achievements
Rank 1
Share this question
or