View Full Version : NumberColumn in grid displays 0 when field is null

13 Dec 2010, 9:30 PM
I have a GridPanel that contains a NumberColumn which has a dataIndex of issue_count and a format string of '0'... however when issue_count has a value of null, a '0' is displayed for the row.

Is there any way to get an empty string or a blank value to appear instead?

-- greg

26 Sep 2012, 4:25 PM
I know this is an old thread, but for anyone else wondering, I find this works to display empty in the numbercolumn when there is null or 0 as a value:

dataIndex: 'item_id',
xtype : 'numbercolumn',
id: 'item_id',
header: 'Item ID',
tooltip : 'Item ID',
format : '0',
width: 50


{name:'item_id', mapping: 'item_id', type: 'int',
convert : function(v, record) {
return (v != null && v != 0 ? v : null);