PDA

View Full Version : GRID



veerakishorekallam
10 Apr 2012, 5:53 AM
Hi,

I have grid cotains MSRP column and i have one combobox[values are 1 & 2 ] on the same page.
on change of combo box need to show tooltip on MSRP.

How to achive please help.


Thanks
veera

scottmartin
10 Apr 2012, 6:40 AM
Place a renderer on your column:



// css for icon in grid
td.cell-icon {
background: url(myimage.png) no-repeat left !important;
padding: 0 5px 0 16px !important;
}

// change tooltip/icon based on your data
function renderIcon(val, meta, rec, rowIndex, colIndex, store) {
meta.tdCls = 'cell-icon';
meta.tdAttr = 'data-qtip="Icon Tip"';
return val;
};

{ dataIndex: 'msrp', header: 'MSRP', renderer: renderIcon },


Regards,
Scott.