PDA

View Full Version : How to add "QuickTips" for Grid`s cell, please?



greennba99
17 Apr 2007, 1:17 AM
How to add "QuickTips" for Grid`s cell, please :-/

mdelanno
17 Apr 2007, 3:37 AM
Use a renderer for your column like this one :


function render(value) {
return '<span ext:qtip="Your text">' + val + '</span>';
}

greennba99
17 Apr 2007, 6:07 PM
Thank you very much ! ! ! !
How to use the code way,but not the statement way ?

tryanDLS
17 Apr 2007, 6:28 PM
Huh? He just gave you the code!

greennba99
17 Apr 2007, 6:33 PM
I mean:


Ext.QuickTips.init();
Ext.QuickTips.register({target: "id", text: "...", title: "..."});

this way

tryanDLS
17 Apr 2007, 6:38 PM
That's going to be a problem b/c you'd have to attach to multiple cells, each with their own id. Look at the rendered HTML of the grid - I don't even think ids are assigned at the at the TD (cell) level.

greennba99
17 Apr 2007, 6:45 PM
I looked the rendered HTML of the grid,not have id for TD :((

tryanDLS
18 Apr 2007, 9:15 AM
That's why you should use a renderer.