View Full Version : RowEditPlugin

31 May 2012, 4:56 AM
I added a RowEditPlugin to my grid panel and I also add an edit event :
onGridroweditingpluginEdit : function ( editor , e, options) {


I need some peace of code in my function to add e.recorde to my data file using store . actually I have no idea about methods I can use in my function :(

31 May 2012, 5:37 AM
you can add a record to the store like this:


31 May 2012, 5:52 AM
tnx for reply

I add store.add(e.record)
but when I update some fields and refresh the page nothing changed

31 May 2012, 6:03 AM
I should add
but I got this error :
Uncaught TypeError: Cannot read property 'internalId' of undefined
do you have any idea about this error

31 May 2012, 6:07 AM
store.add() was just for example. you have to replace it with your store. After add(), if you have store's autoSync() property set to true, it will send a request to your server. If not, you have to call store.sync() after store.add().

But first, you have to be able to add the record to the store. I dont know where your error is coming from.