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 edit .saveRow() from outside of grid
07/07/2009
10:30
Avatar
samuel
Member
Members
Forum Posts: 13
Member Since:
07/07/2009
sp_UserOfflineSmall Offline

Hi i'm trying to use a submit button outside of the grid to send a  .saveRow() isthis possible in jqGrid?

We're using inline editing on a blank grid, a single click to edit a row and saving the data on selection of another row. All the above works fine.

We'd like to be able to save the final row, after it's been edited when the user clicks the main submit button for the page. I have tied an onclick to this button which calls .saveRow() with the id of the last selected row.

the behaviour seems works occassionaly but inconsistently - but always throws an alert stating "Error Row: x Result: 0: Status: error" where x is the row selected for edit.  the alert appears to be being raised on call to the server url.

08/07/2009
06:10
Avatar
tony
Sofia, Bulgaria
Moderator
Members

Moderators
Forum Posts: 7721
Member Since:
30/10/2007
sp_UserOfflineSmall Offline

Hello,

Is this row edited before - i.e before call saveRow you should call editRow.

Regards

Tony

For professional UI suites for Java Script and PHP visit us at our commercial products site - guriddo.net - by the very same guys that created jqGrid.

08/07/2009
07:16
Avatar
samuel
Member
Members
Forum Posts: 13
Member Since:
07/07/2009
sp_UserOfflineSmall Offline

Hi tony,

I've resolved this - the row was edited, but left 'unsaved' i.e. containing data and focus now off the grid,  I wanted to mimic a save if the user clicked on a submit button elsewhere (outside the grid) leaving the row in an 'edit' state with data

I can get the unsaved row details from the request and then process them on server side, rather than trying to call .saveRow from outside the grid and relying on the ajax call.

hope that made some sense!

thanks again.

10/07/2009
06:49
Avatar
tony
Sofia, Bulgaria
Moderator
Members

Moderators
Forum Posts: 7721
Member Since:
30/10/2007
sp_UserOfflineSmall Offline

Hello,

As of 3.5 you can set clientArray in the url which do not make ajax call and just saves the row.

Regards

Tony

For professional UI suites for Java Script and PHP visit us at our commercial products site - guriddo.net - by the very same guys that created jqGrid.

Forum Timezone: Europe/Sofia

Most Users Ever Online: 715

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