resources/Editors/Editor.Roo.GridPanel.bjs
[app.Builder.js] / resources / Editors / Editor.Roo.grid.Grid.js
index f05e608..6ca394d 100644 (file)
@@ -236,8 +236,8 @@ Editor.Roo.grid.Grid = new Roo.XComponent({
                "xtype": "ColumnModel",
                "header": rec.data.title,
                "width":  rec.data.width * 1,
-               "dataIndex": rec.Field,
-               "|renderer": !rec.Type.match(/date/i) ? 
+               "dataIndex": rec.data.dataIndex,
+               "|renderer": !rec.data.type.match(/date/i) ? 
                        "function(v) { return String.format('{0}', v); }" :
                        "function(v) { return String.format('{0}', v ? v.format('d/M/Y') : ''); }" , // special for date
                "|xns": "Roo.grid",