Forum


23:31

27/10/2011

I have a jqgrid with the datatype set to local. The grid is being used for data entry, so we are dynamically adding rows to the grid. The data behind those rows is a serialized object coming from the server through an ajax request. I take the response from the ajax call and add the row to the grid. When a user submits the page, we loop over the data in the grid, serialize it to a json string and post it back to the server.
My problem comes in when we pull the object out of the grid. There are some properties missing, it looks like if we didn't define a colModel for specific properties jqgrid just ignores them and doesnt store them at all. Has anyone else ran into this and/or has a workaround so whatever data we pass into the grid(whether it has a colModel definition or not) is exactly the same as the data we pull back out.
Here is an example of the call to add a row:
.addRowData(rowId, rowData, 'last')
Here is an example of the call to pull the row back out:
.jqGrid('getRowData', rowId)
Thanks in advance,
Kyle
Most Users Ever Online: 715
Currently Online:
148 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