1. #1
    Sencha User Sameer Khan's Avatar
    Join Date
    Oct 2011
    Location
    Bangalore, India
    Posts
    113
    Vote Rating
    0
    Sameer Khan is on a distinguished road

      0  

    Default How to add a ToolTip to CheckboxselectionModel class

    How to add a ToolTip to CheckboxselectionModel class


    HI, I want to add a tool tip to to the checkbox column header in my gridpanel. This check box was created and added to gridpanel by Checkboxselectionmodel class.
    here in the class Checkboxselectionmodel class there is not support for tooltip.

    Can any one please suggest me how to solve this problem. Please send me some sample code.

    Regards,
    sameer.
    Sameer Khan

  2. #2
    Sencha User
    Join Date
    Jan 2011
    Posts
    544
    Vote Rating
    51
    willigogs is a jewel in the rough willigogs is a jewel in the rough willigogs is a jewel in the rough

      0  

    Default


    One possible solution:
    Code:
    var grid = {
        // GRID CONFIG HERE
        listeners: {
            afterrender: function(thisgrid) {
                var view = thisgrid.getView();
                var chkdiv = Ext.fly(view.innerHd).child(".x-grid3-td-checker").id;
                Ext.QuickTips.register({
                    target: chkdiv,
                    title: 'Title',
                    text: 'Text'
                });
            }
        }
    };

Thread Participants: 1