"*prop": "colModel[]"
},
{
- "xtype": "ColumnModel",
+ "*prop": "colModel[]",
+ "dataIndex": "report_loaddate",
"header": "Report loaddate",
"width": 75,
- "dataIndex": "report_loaddate",
- "|renderer": "function(v) { return String.format('{0}', v ? v.format('d/M/Y') : ''); }",
- "|xns": "Roo.grid",
- "*prop": "colModel[]"
+ "xtype": "ColumnModel",
+ "|renderer": "function(v) { \n var vv = Date.parseDate(r.json.report_loaddatesplit('.')[0], 'Y-m-d H:i:s').format('d/M/Y h:ia');\n return String.format('{0}', vv? vv.format('d/M/Y') : ''); \n\n }",
+ "|xns": "Roo.grid"
}
]
}
{
xtype: 'ColumnModel',
xns: Roo.grid,
+ dataIndex : 'report_loaddate',
header : 'Report loaddate',
width : 75,
- dataIndex : 'report_loaddate',
- renderer : function(v) { return String.format('{0}', v ? v.format('d/M/Y') : ''); }
+ renderer : function(v) {
+ var vv = Date.parseDate(r.json.report_loaddatesplit('.')[0], 'Y-m-d H:i:s').format('d/M/Y h:ia');
+ return String.format('{0}', vv? vv.format('d/M/Y') : '');
+
+ }
}
]
}