开发者

UPDATE row in grid in extjs 3

开发者 https://www.devze.com 2023-01-16 04:54 出处:网络
I have a form and below that a grid. When a add some data in form and click \"Insert\", it inserts data in g开发者_如何转开发rid. When i double click on grid all the data from grid fills up in form. I

I have a form and below that a grid. When a add some data in form and click "Insert", it inserts data in g开发者_如何转开发rid. When i double click on grid all the data from grid fills up in form. I then change the data. (similar to Ext.data.DataWriter Example)

The problem is I am not able to "UPDATE" row in grid. I am not using datawriter class. But I just simply want to update my grid row with new data.

Is there a way to do this???????


I finally found answer to my question....

its Record class's method:

set( String name, String/Object/Array value ) : void

So you can use it like this: record.set('fieldname', 'newvalue');

Thanks everyone.... Regards

0

精彩评论

暂无评论...
验证码 换一张
取 消