Forum
18:03
20/06/2013
Hello,
I have an issue where I can't re-submit an inline edited row after a validation error is returned from the server. I have an afterSave function which processes the results of the AJAX call and displays a message to the user. In the case of an error, I also call jqGrid('setSelection', rowid) for the row that was being edited so the user can correct their error and re-submit. Everything appears to work except the fact that the row will no longer submit by pressing the Enter key or cancel editing by pressing Esc. I would expect that the setSelection is acting as if a user clicked the row for editing and all functionality would be available. Is there something I am missing? Thanks.
**UPDATE
I was able to get around the issue described above by using successfunc instead of aftersavefunc. However, I now have a different issue. After a successful edit of a row, I am using resetSelection to unselect the row but the row is still selected. The selection color disappears when resetSelection fires but all of the input elements are still visibile. Any ideas?
**UPDATE 2
I got around the second issue by calling saveRow with 'clientArray' as the url (to avoid a server call and preserve the data) for the edited row and then calling restoreRow. This seems like a hack and I would like to know the correct way to do this. Maybe there is a bug here?
Most Users Ever Online: 715
Currently Online:
52 Guest(s)
Currently Browsing this Page:
1 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