Column chooser tooltips

3 posts, 1 answers
  1. Andrea
    Andrea avatar
    76 posts
    Member since:
    Oct 2012

    Posted 16 Dec 2016 Link to this post

    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. Answer
    Dess | Tech Support Engineer, Sr.
    Admin
    Dess | Tech Support Engineer, Sr.  avatar
    4086 posts

    Posted 19 Dec 2016 Link to this post

    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.
  3. Andrea
    Andrea avatar
    76 posts
    Member since:
    Oct 2012

    Posted 19 Dec 2016 in reply to Dess | Tech Support Engineer, Sr. Link to this post

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

    Thank you

    Andrea
Back to Top