PDA

View Full Version : [SOLVED] How to set a tooltip on a grid cell



rimbaudsolaris
5 Jul 2010, 2:56 AM
I'd like to set a tooltip grid cell status which is rendered like this (cf image in attachment)







{header: '<fmt:message key="sybiladmin.userException.state"/>', width: 60 , dataIndex: 'active', id: 'active',

renderer: function(value, metaData, record, rowIndex, colIndex, store) {

if (record.get('endDate') <= new Date()) {
metaData.css = 'userException-disabled';


} else if (value) {
metaData.css = 'userException-active';
} else if (!value) {
metaData.css = 'userException-inactive';
}
}
}thanks a lot for your help

Animal
5 Jul 2010, 2:57 AM
Use a DataTip

rimbaudsolaris
5 Jul 2010, 5:53 AM
Thanks Animal ;)

I used metaData.attr ='ext:qtip="' + '<fmt:message key="sybiladmin.userException.userDeactivate"/>' + '"';
and it works well