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
Inline editing and committing row edits
13/06/2012
21:08
Avatar
syltech
Member
Members
Forum Posts: 4
Member Since:
13/06/2012
sp_UserOfflineSmall Offline

Greetings.  I'm working with jqGrid 4.3.2 in an ASP.NET MVC 4 website, jQuery 1.7.2.  There are several places in the application where jqGrid is used.  My general setup right now is that all editing is done locally (loadonce: true and clientArray) with inline navigation and editing, and all grid data is posted to the server on form submit via AJAX calls.  For the most part, I've got things working pretty well.  However, I've run into some difficulty with row edits and at what events they are committed.  To view the site (total work in progress), go here:

http://goo.gl/dysfQ

The data on this site is totally mocked, so feel free to add/edit rows.  If you add or edit a row and then click somewhere else on the page, the row edit is not saved.  The user has to hit the enter key somewhere during the row edit in order to save the row.  

I touched on this a little bit in a Stack Overflow question that Oleg was kind enough to answer (http://goo.gl/tB3Ex).  Is there a way to commit a row edit other than when the enter key is pressed, like when the row loses focus maybe?

13/06/2012
22:45
Avatar
syltech
Member
Members
Forum Posts: 4
Member Since:
13/06/2012
sp_UserOfflineSmall Offline

Also posted on Stack Overflow here: http://stackoverflow.com/quest.....-row-edits

14/06/2012
17:23
Avatar
syltech
Member
Members
Forum Posts: 4
Member Since:
13/06/2012
sp_UserOfflineSmall Offline

For folks that have this same problem in the future, Oleg answered my Stack Overflow question.  Setting the inlineNav's property restoreAfterSelect: false fixed this.

Forum Timezone: Europe/Sofia

Most Users Ever Online: 715

Currently Online:
79 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