View Full Version : Grid Sorting disabling quicktips

19 Apr 2007, 8:24 AM
I have a custom renderer in my grid that sets an image with a quicktip for one of the columns - the quicktip works fine until I sort the grid - then the quicktips no longer appear, am I hitting a bug or does the grid sort do something weird?

Sorting is done using

cm.defaultSortable = true;

The renderer looks like this

function thumb(value, p, record){
return String.format('<img src="index.php?image={0}&w=40&h=40" ext:qtip="<img src=index.php?image={0}&w=200&h=200 alt=Something />" ext:width="155.0" ext:qtitle="{1}, {2}" />', value, record.data['last_name'], record.data['first_name']);

The ext:width="155.0" is there to overcome a weird bug I was getting

UPDATE: yes this is a bug
http://extjs.com/forum/showthread.php?t=5035 explains what's happening, the handleMouseUp is never getting called so Quicktips is never being re-enabled

15 Jun 2007, 9:12 AM
That's a lot easier solution to add QTips to grid cells....
I was taking the approach of overriding the templates creating the divs and adding the QTip in there.
Much easier to add to my already overridden renderer.
Thanks for the idea!