Ext4.2.3 in the PropertyGrid modified click on the sorting error, the details are as follows:
At first it was doubtful where the configuration was wrong, and the results of the various attempts were the same. Search all over Baidu and Google, no fruit, only one post said is 4.2.4 amended. Let's do it yourself and have your own hands and clothing. Click to open the error place (as shown), the original is
Me.field.columnNot defined. And then keep looking, find, find.
Ext.grid.property.GridOf
GetcelleditorMethod. This method has parameters
column, can be in the body of the method,
columnIt has not been used, so I feel the problem is here. After practice, this method is modified as follows, this bug is resolved.
Getcelleditor:function(record, column) {varme = This, propname=Record.get (Me.namefield), Val=Record.get (Me.valuefield), editor= Me.getconfig (propname, ' editor ')), type= Me.getconfig (propname, ' type ')), editors=me.editors; if(editor) {if(! (EditorinstanceofExt.grid.CellEditor)) {if(! (EditorinstanceofExt.form.field.Base)) {Editor= Ext.ComponentManager.create (editor, ' TextField ')); } Editor= Me.setconfig (propname, ' editor ',NewExt.grid.CellEditor ({field:Ext.apply (Editor,{column:column})}); } } Else if(type) {Switch(type) { Case' Date ': Editor=NewExt.grid.CellEditor ({field:NewExt.form.field.Date ({column:column,selectonfocus:true})}); Break; Case' Number ': Editor=NewExt.grid.CellEditor ({field:NewExt.form.field.Number ({column:column,selectonfocus:true})}); Break; Case' Boolean ': Editor=NewExt.grid.CellEditor ({field:NewExt.form.field.ComboBox ({column:column, editable:false, Store: [[true, Me.headerCt.trueText], [false, Me.headerCt.falseText]] })}); Break; default: Editor=NewExt.grid.CellEditor ({field:NewExt.form.field.Text ({column:column,selectonfocus:true})}); } } Else if(Ext.isdate (val)) {Editor=NewExt.grid.CellEditor ({field:NewExt.form.field.Date ({column:column,selectonfocus:true})}); } Else if(Ext.isnumber (val)) {Editor=NewExt.grid.CellEditor ({field:NewExt.form.field.Number ({column:column,selectonfocus:true})}); } Else if(Ext.isboolean (val)) {Editor=NewExt.grid.CellEditor ({field:NewExt.form.field.ComboBox ({column:column, editable:false, Store: [[true, Me.headerCt.trueText], [false, Me.headerCt.falseText]] })}); } Else{Editor=NewExt.grid.CellEditor ({field:NewExt.form.field.Text ({column:column,selectonfocus:true})}); } Editor.editorid=propname; returnEditor; }
Fix Ext4.2.3 in PropertyGrid edit Click Sort Error