Forum


18:14

01/09/2008

Does someone have an example of using inline editing to update a database and return the updated data to the grid?
I have been reading through the examples and although there is quite a bit of good information, I can't determine from the examples how to pass the changed values to the server and then update the grid with the new values. If someone has a simple example they could post, it would be helpful.
I looked at both the rowedex1 and rowedex4 examples and I can't see how the data in parsed by the server for update and how the new values populate the grid.
Thanks
Pete
19:06

01/09/2008

Never mind. I think I have the basic sequence figured out, although a fully functioning demo that shows editing, update with the roundtrips to the server would be helpful.
As far as I can tell. Editing the example to this:
onSelectRow: function(id){
if(id && id!==lastsel3){
$('#workTimes').saveRow(lastsel3);
$('#workTimes').editRow(id,true);
lastsel3=id;
}
}
Allows the data to be written to the grid. The editurl call will handle the update part at the server (still figuring out how to pass the cell contents but that shouldn't be too hard). The return data from the editurl should be linked up with sucessfunc passed in saveRow so you can determine if all was well at the server end.
I think I have it figured out now.
Most Users Ever Online: 715
Currently Online:
68 Guest(s)
Top Posters:
OlegK: 1255
markw65: 179
kobruleht: 144
phicarre: 132
YamilBracho: 124
Renso: 118
Member Stats:
Guest Posters: 447
Members: 11373
Moderators: 2
Admins: 1
Forum Stats:
Groups: 1
Forums: 8
Topics: 10592
Posts: 31289
Newest Members:
, razia, Prankie, psky, praveen neelam, greg.valainis@pa-tech.comModerators: tony: 7721, Rumen[Trirand]: 81
Administrators: admin: 66