PDA

View Full Version : [CLOSED] How I update one row of gridPanel only? gridPanel datasource is a Json webservice.



supera
Apr 10, 2012, 8:08 PM
Hi!

Hi have a gridPanel in my main Page and data source of this gridPanel is a webservice.
When I dblclick in row of gridPanel, I open a window with a aspx page within.
This aspx page save the changes directly in my database.
When I return to main page, I 'm refresh all records in gridPanel... I wish reload only the row corresponding the record in database.

There are any example to do this?

Daniil
Apr 11, 2012, 7:25 AM
Hi,

You could return only changed record values and update it client side something like this:

Example

var r = App.GridPanel1.getStore().getAt(0);
r.beginEdit();
r.set("test1", "new value 1");
r.set("test2", "new value 2");
r.set("test3", "new value 3");
r.endEdit();
r.commit();

supera
Apr 11, 2012, 11:10 AM
Hi Daniil...

Thanks for your answer... I will try do this...

Thanks again.