PDA

View Full Version : tool tip for the grid column



atulpahuja
24 Apr 2013, 11:20 PM
I am converting the html table to ext-js grid. The grid is being rendered.but I unable to add tooltip to grid columns.


var grid = Ext.create('Ext.ux.grid.TransformGrid', "import-table", {
id:'gridId',
stripeRows: true,
//height: 500,
cls: 'extra-alt',
layout: 'fit',
scroll: false,
style : {overflow: 'scroll'}
});
grid.render('importtable');



Please help me ASAP.
Thanks in advance,
Atul

slemmon
26 Apr 2013, 2:29 PM
I believe the TransformGrid itself does not automatically create tooltips for you. You'll need to add that functionality.

You might look at the Delegation example at the top of the Tooltip API doc:
http://docs.sencha.com/extjs/4.2.0/#!/api/Ext.tip.ToolTip

And while I haven't tried it this one might work for you, too:
http://docs.sencha.com/extjs/4.2.0/#!/api/Ext.ux.DataTip