Forum


10:30

07/07/2009

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.
06:10

Moderators
30/10/2007

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.
07:16

07/07/2009

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.
06:49

Moderators
30/10/2007

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.
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.comModerators: tony: 7721, Rumen[Trirand]: 81
Administrators: admin: 66