PDA

View Full Version : How to put a "pastille" on a grid panel ?



Elfayer
8 Aug 2012, 4:13 AM
Hi,

I would like to put a "pastille" on a grid panel to notice if it's a new News or an old. Like below :37808

Tim Toady
8 Aug 2012, 9:18 AM
I would use a renderer on that column. I am going to assume there is some sort of date on your record. The record is a parameter to your renderer. Get the date from it, if it is within a certain threshold return the html that specifies the value and "new." If it is old, just return the value.

http://docs.sencha.com/ext-js/4-1/#!/api/Ext.grid.column.Column-cfg-renderer