"keypress" : "function (e)\n{\n if(e.keyCode == 13){\n _this.grid.footer.onClick('first');\n }\n}",
"beforeedit" : "function (e)\n{\n if(e.field == 'name' && e.record.data.is_system_enum*1 == 1){\n return false;\n }\n}",
"|render" : "function() \n{\n _this.grid = this; \n //_this.dialog = Pman.Dialog.FILL_IN\n if (_this.panel.active) {\n this.footer.onClick('first');\n }\n}",
- "cellclick" : "function (_self, rowIndex, columnIndex, e)\n{\n\n var di = this.colModel.getDataIndex(columnIndex);\n var rec = _this.grid.ds.getAt(rowIndex);\n \n if (di == 'active') {\n \n rec.set('active', rec.data.active ? 0 : 1);\n rec.commit();\n return;\n }\n if (di == 'id' ) {\n \n if (!e.controlKey && !e.shiftKey) { // shift or control not pressed -clear selection.\n \n this.dataSource.each(function(rr) {\n rr.selected = 0;\n rr.set('sel', 0);\n });\n }\n \n if (this.last_selected && e.shiftKey) {\n // the highlight all the lines between the one last selected, and this one.\n var s = this.dataSource.indexOf(this.last_selected);\n var e = this.dataSource.indexOf(rec);\n var ss = Math.min(s,e);\n var ee = Math.max(s,e) +1;\n for(var i = ss; i < ee; i++) {\n var rr = this.dataSource.getAt(i);\n rr.selected = 1;\n rr.set('sel', 1);\n }\n this.last_selected = rec;\n return;\n\n }\n \n rec.selected = rec.selected ? 0 : 1;\n this.last_selected = rec.selected ? rec : false;\n rec.set('sel', rec.data.sel ? 0 : 1);\n }\n \n\n \n \n}",
+ "cellclick" : "function (_self, rowIndex, columnIndex, e)\n{\n\n var di = this.colModel.getDataIndex(columnIndex);\n var rec = _this.grid.ds.getAt(rowIndex);\n \n if (di == 'active') {\n \n rec.set('active', rec.data.active ? 0 : 1);\n rec.commit();\n return;\n }\n if (di == 'id' ) {\n \n if (!e.ctrlKey && !e.shiftKey) { // shift or control not pressed -clear selection.\n \n this.dataSource.each(function(rr) {\n rr.selected = 0;\n rr.set('sel', 0);\n });\n }\n \n if (this.last_selected && e.shiftKey) {\n // the highlight all the lines between the one last selected, and this one.\n var s = this.dataSource.indexOf(this.last_selected);\n var e = this.dataSource.indexOf(rec);\n var ss = Math.min(s,e);\n var ee = Math.max(s,e) +1;\n for(var i = ss; i < ee; i++) {\n var rr = this.dataSource.getAt(i);\n rr.selected = 1;\n rr.set('sel', 1);\n }\n this.last_selected = rec;\n return;\n\n }\n \n rec.selected = rec.selected ? 0 : 1;\n this.last_selected = rec.selected ? rec : false;\n rec.set('sel', rec.data.sel ? 0 : 1);\n }\n \n\n \n \n}",
"afteredit" : "function (e)\n{\n e.record.commit(); \n}"
},
"autoExpandColumn" : "display_name",
}
if (di == 'id' ) {
- if (!e.controlKey && !e.shiftKey) { // shift or control not pressed -clear selection.
+ if (!e.ctrlKey && !e.shiftKey) { // shift or control not pressed -clear selection.
this.dataSource.each(function(rr) {
rr.selected = 0;