PDA

View Full Version : Update a record in Gridpanel with JSON store



avk
15 Mar 2010, 9:27 AM
Hi All,


I have a GridPanel, when user double clicks the record(row) it has to open new window allow user to edit record(selected row) and updated it.


after editing the record i am trying to save them to Grid(JSON Store)
....
handler:function(rowIndex){
var nameValue = Ext.getCmp('editname').getValue();
var emailValue = Ext.getCmp('editemailId').getValue();
var editRecord = {name:nameValue ,emailId:emailValue };

myStore.insert(rowIndex, editRecord );
myStore.commitChanges();
Ext.getCmp('myGridID').getView().refresh();
}}


I am getting Error - b[d].join is not a function , and i am unable to redisplay grid/refresh grid with changes, please help me