extjs - Updating Rowediting editor after a user Input -
we have rowediting plugin on grid button of 1 trigger field changes other values of record (we loading remote info applied record). values changed in background commonly not editable, rendered. remote loading of info works fine, meaning record changed , info save have next problems:
1.the rowediting plugin not show changes applied record fields
2.setting changes via record.set()
cause store sync , not on clicking "save" button of editor.
so how can create editor show changes applied in background , how can apply these changes in way saved along other edited fields.
thanks in advance help!
this should not complicated, need reference active editor instance. can either
reload record form calling loadrecord() again. note may overwrite changes made within editoror (for sec way expecting values same in record in manner of key:value definition - short: no special mapping required)
apply new info record calling eitherset
(note trigger sync if have autosync
turned on) or using ext.apply(recinstance.data,newvalues) , editorinstance.getform().setvalues(newvalues)
extjs extjs4 extjs4.2
No comments:
Post a Comment