Forum

November 2nd, 2014
A A A
Avatar

Lost password?
Advanced Search

— Forum Scope —




— Match —





— Forum Options —





Minimum search word length is 3 characters - maximum search word length is 84 characters

The forums are currently locked and only available for read only access
sp_Feed Topic RSS sp_TopicIcon
Can't re-submit inline edited row after validation error from server
20/06/2013
18:03
Avatar
dp
New Member
Members
Forum Posts: 1
Member Since:
20/06/2013
sp_UserOfflineSmall Offline

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?

Forum Timezone: Europe/Sofia

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.com

Moderators: tony: 7721, Rumen[Trirand]: 81

Administrators: admin: 66

Comments are closed.
Privacy Policy   Terms and Conditions   Contact Information