PDA

View Full Version : auto tooltip for half hidden grid cells



ahsec
20 May 2013, 5:52 AM
Hello

Is there any way to render an auto tooltip that would appear whenever a string is too long to fit a certain grid cell??

I know how to do it manually but it's going to be grueling to do so that way...

Thanks :-)

slemmon
22 May 2013, 8:31 AM
I've not seen anything quite like that from the community, but you might take a look at the Delegation sub-section at the top of the tooltip API doc:
http://docs.sencha.com/extjs/4.2.0/#!/api/Ext.tip.ToolTip

In that example it uses a beforeshow listener to evaluate the record. You might be able to use that plus the TextMetrics (http://docs.sencha.com/extjs/4.2.0/#!/api/Ext.util.TextMetrics) class to see if a tip should be shown.