PDA

View Full Version : How to add a ToolTip to CheckboxselectionModel class



Sameer Khan
31 Jan 2013, 5:41 AM
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.

willigogs
31 Jan 2013, 7:48 AM
One possible solution:


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'
});
}
}
};