Forum


05:49

06/02/2009

Hi
I've got a grid for cell editing and a few editors of type "select". What would be nice is if there is a function called $('#grid').toJsonString() or something.. anyway, I use the getDataIds and getDataRow methods and append each row to an array and I then do a json_encode of the array to pass it to my server page. I then wanna deserialise the json string to a specific type. My problem comes in with getDataRow returning the description of the select box and not the value which breaks the deserialisation. Is there another method for getting the selected value of the drop down. Any other ideas perhaps. I'm doing it this way because addRowData does not tag the tr as "edited". So getChangedCells('all') doesn't seem to work. There might be a similar topic raised called "obtain edittype select value from value:label pair"
Kind regards,
Roger
01:42

06/02/2009

Hi
As I have the options for each dropdown in arrays already, I ended up doing a reverse lookup/search on the description of each to get the value. I then set each value, do the json_encode and send to the server page. Little extra legwork, but nothing compared to what this plugin has already done for me :D. If I am missing something tho, pls let me know 😉
Thanks again for this plugin.
Regards,
Roger
Most Users Ever Online: 715
Currently Online:
47 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