Define a header as follows:
{Header: "name", dataindex: "person_name", sortable: True, Renderer: function (data, metadata, record, rowindex, columnindex, store ){
// Build the QTip:
VaR Title = 'detail :';
VaR tip = record. Get ('person _ name ');
Metadata. ATTR = 'ext: qtitle = "'+ title +'" '+ 'ext: QTip = "' + tip + '"';
// Return the display text:
Return data;
}},
Cmgridzq. On ('render', function (GRID ){
VaR sto = grid. getstore ();
VaR view = grid. getview ();
Cmgridzq. Tip = new Ext. tooltip ({
Target: view. mainbody, // The overall target element.
Delegate: '. x-grid3-row', // each grid row causes its own seperate show and hide.
Trackmouse: True,
Renderto: cmgridzq. Body,
Listeners :{
Beforeshow: function updatetipbody (TIP ){
VaR rowindex = view. findrowindex (tip. triggerelement );
If (STO. getat (rowindex). Get ('sign ')){
Tip. body. dom. innerhtml = "<font color = 'green'> printed:" + Sto. getat (rowindex ). get ('sign') + "</font> ";
} Else {
Tip. Body. Dom. innerhtml = "<font color = 'red'> no documents have been printed yet </font> ";
}
}
}
});
})