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
Get ID for dropdown in cell edit mode
16/02/2009
05:49
Avatar
rojoba
Member
Members
Forum Posts: 15
Member Since:
06/02/2009
sp_UserOfflineSmall Offline

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

17/02/2009
01:42
Avatar
rojoba
Member
Members
Forum Posts: 15
Member Since:
06/02/2009
sp_UserOfflineSmall Offline

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

Forum Timezone: Europe/Sofia

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

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

Administrators: admin: 66

Comments are closed.
Privacy Policy   Terms and Conditions   Contact Information