Ext.grid之numbercolumn格式化输出

Ext.grid的输出列类型(xtype)为numbercolumn时,默认输出的小数位数为2,为了自定义输出的格式,可为其定义format属性,如:

var sub_cm = new Ext.grid.ColumnModel([

{
            header: "单机用量",
            xtype: "numbercolumn",
            format: '0,0.0000',
            align: 'right',
            dataIndex: 'qtyUnit',
            sortable: true,
            updateEdit: false,
            80
}]);

原文地址:https://www.cnblogs.com/minideas/p/1922873.html