From 18ab71c279aa0746370576802355cd769a1f294f Mon Sep 17 00:00:00 2001 From: Edward Date: Wed, 6 May 2015 17:06:04 +0800 Subject: [PATCH] resources/Editors/Editor.Roo.LayoutDialog.bjs resources/Editors/Editor.Roo.LayoutDialog.js --- resources/Editors/Editor.Roo.LayoutDialog.bjs | 2 +- resources/Editors/Editor.Roo.LayoutDialog.js | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/resources/Editors/Editor.Roo.LayoutDialog.bjs b/resources/Editors/Editor.Roo.LayoutDialog.bjs index c05011d52..c53018436 100644 --- a/resources/Editors/Editor.Roo.LayoutDialog.bjs +++ b/resources/Editors/Editor.Roo.LayoutDialog.bjs @@ -38,7 +38,7 @@ { "listeners" : { "|rowdblclick" : "function (_self, rowIndex, e)\n{\n if (!_this.dialog) return;\n \n}\n", - "beforeedit" : "function (e)\n{\n Roo.log('before edit!!!');\n Roo.log(e);\n}", + "beforeedit" : "function (e)\n{\n Roo.log('before edit!!!');\n Roo.log(e);\n \n _this.grid.colModel.getCellEditor(e.column, e.row).field.store.loadData()\n}", "cellclick" : "function (_self, rowIndex, columnIndex, e)\n{\n\n var di = this.colModel.getDataIndex(columnIndex);\n if (di != 'active') {\n return;\n }\n \n var rec = _this.grid.ds.getAt(rowIndex);\n \n rec.set('active', rec.data.active * 1 ? 0 : 1);\n rec.commit();\n \n \n}", "|render" : "function() \n{\n _this.grid = this; \n //_this.dialog = Pman.Dialog.FILL_IN\n\n}" }, diff --git a/resources/Editors/Editor.Roo.LayoutDialog.js b/resources/Editors/Editor.Roo.LayoutDialog.js index 75dd2b7a6..b2d0afd9e 100644 --- a/resources/Editors/Editor.Roo.LayoutDialog.js +++ b/resources/Editors/Editor.Roo.LayoutDialog.js @@ -457,6 +457,8 @@ Editor.Roo.LayoutDialog = new Roo.XComponent({ { Roo.log('before edit!!!'); Roo.log(e); + + _this.grid.colModel.getCellEditor(e.column, e.row).field.store.loadData() }, cellclick : function (_self, rowIndex, columnIndex, e) { -- 2.39.2