PDA

View Full Version : QuickTips disabled after Grid header click


reawilliams
04-19-2007, 02:39 PM
A Grid column header click results in two MouseDown events but only one MouseUp event. This leaves QuickTips disabled because the disable function is called for each MouseDown and enable for each MouseUp. The missing MouseUp event leaves QuickTips Lock stack non-empty and QuickTips disabled. The problem also occurs with a click in the grid's vertical scrollbar.

This can easily be reproduced using the array-grid example. Add the following to the js just before the grid.render() line:

Ext.QuickTips.init();
grid.on('mouseover',
function(p1,p2,p3){
if(p2.className == 'x-grid-cell-text') {
p2.qtip = p2.innerText;
}
},
grid);

The MouseDown / MouseUp is working correctly for the grid column header element. The one with the missing MouseUp is a mystery to me, it has an id like 'ext-gen1'.

n01champion
05-01-2007, 03:07 PM
bump

auroraeosrose
05-01-2007, 05:19 PM
actually this is caused by the dnd capabilites of the headers (the drag and drop is actually doing the quicktips disabling) - see http://extjs.com/forum/showthread.php?t=4578

cdudez
09-13-2007, 11:14 AM
Solution: Re-register all the qtip items on the 'headerclick' event...also call 'Ext.QuickTips.init' as well.

-AD

jsakalos
09-14-2007, 06:21 AM
Try to upgrade to 1.1.1 (it's compatible). I've tested it in my app and grid header click doesn't disable QT in my case (latest svn trunk).