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
Storing Grid Data
27/10/2011
23:31
Avatar
kylesp
New Member
Members
Forum Posts: 1
Member Since:
27/10/2011
sp_UserOfflineSmall Offline

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

Forum Timezone: Europe/Sofia

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.com

Moderators: tony: 7721, Rumen[Trirand]: 81

Administrators: admin: 66

Comments are closed.
Privacy Policy   Terms and Conditions   Contact Information