Forum


05:09

09/02/2010

Is it possible to do the following:
- Edit a row
- Maintain update the display with the edited version, without saving the record / re-rendering grid
- Change the rows class designating it "edited"
- Bind a method to a button in a toolbar to update all edited rows in one batch (so you could write interfaces to true transactional backends).
I suppose this has been asked about before but I couldn't find anything from a simple search. Can this be done without writing a bunch of custom methods that arbitrarily store a subset of changes?
05:24

09/02/2010

I'm attempting to write something that will submit changed rows in batch. So far I have a select input that will fire an event after it's changed, then attempt to update the grid . The first part of this idea seems to work. After selecting a "name" from the select element, after clickout out of the row, that cells value is updated in display.. clicking on another row however, reverts the displayed row.
So I can get the grid to update from a select input but it changes back after a row is selected. Why is that?
05:32

09/02/2010

xgote said:
So I can get the grid to update from a select input but it changes back after a row is selected. Why is that?
I was calling .jqGrid('restoreRow') during a "onSelectRow". Works! In any case, using dataEvents in the column model, passing the index of the row and getting the value from the input using jQuery('#' + [last selected row] + '_' + [name of the cell]).val(), and populating a hash of changed data, it is easy to write the case that I described above.
I'll post the final solution when I get it so others can use it too.
18:30

03/05/2010

I have a similar requirement for my use of the jqGrid. So far I've been able to achieve what I needed by wrapping my batch-edit code around their cell-edit plugin. At the end of editing a particular grid, the changes can be retrieved using the getChangedCells() method.
My question is, however, are there any built-in jqGrid methods for posting an array of changed cell/row data to the server? I realize I can accomplish this with multiple calls to saveRow, but for large batches of changed data, the amount of overhead caused by repeatedly making round-trips to the server would be just too much.
Anyone know a solution to this problem?
Most Users Ever Online: 715
Currently Online:
95 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