Forum



15:40

25/01/2013

Hi. I have the following problem.
I have a cell with edittype = "checkbox" and a formatter that turns the chosen value into a check or a cross image. When I edit it, I need to automatically update another cell (the following one) that has the same property (a checkbox in edit, turns into a check or a cross image). I have been doing this manually in the afterSubmitCell event for these two cells, by erasing the innerHTML in the other cell and appending a span and an img, like the formatter does for each cell after edit.
Is there any way to do this automatically? I tried using the editCell and saveCell methods, but they don't have a way to set the new value to each cell, so they just send the current value to server.
Thanks.
17:05

25/01/2013

aram535 said:
I think you can use something like:
onSelectRow: function (id) {
var rowData = $(this).getRowData(id);
// now you can manipulate rowData as it has all of the DOM elements of that row.
}
I thought onSelectRow wasn't available with cell edition?
Anyway, doesn't that fire when you choose a row? I need the change to happen after I finish changing the value of the checkbox in one of the cells.
Thanks.
15:25

Moderators
30/10/2007

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:
43 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