},
{
"*prop": "colModel[]",
- "dataIndex": "estimated",
+ "dataIndex": "spent",
"header": "Hours",
"width": 50,
"xtype": "ColumnModel",
"|renderer": "function(v,x,r) { \n return String.format('{0}/{1}', r.data.spent, v); \n}",
- "|xns": "Roo.grid",
- "items": [
- {
- "|xns": "Roo.grid",
- "xtype": "GridEditor",
- "*prop": "editor",
- "items": [
- {
- "*prop": "field",
- "allowDecimals": true,
- "decimalPrecision": 1,
- "xtype": "NumberField",
- "|xns": "Roo.form"
- }
- ]
- }
- ]
+ "|xns": "Roo.grid"
},
{
"*prop": "colModel[]",
{
xtype: 'ColumnModel',
xns: Roo.grid,
- dataIndex : 'estimated',
+ dataIndex : 'spent',
header : 'Hours',
width : 50,
renderer : function(v,x,r) {
return String.format('{0}/{1}', r.data.spent, v);
- },
- editor : {
- xtype: 'GridEditor',
- xns: Roo.grid,
- field : {
- xtype: 'NumberField',
- xns: Roo.form,
- allowDecimals : true,
- decimalPrecision : 1
- }
}
},
{