Fix Ext4.2.3 in PropertyGrid edit Click Sort Error

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.