Forum
November 2nd, 2014
A
A
A
Topic RSS
Offline
The forums are currently locked and only available for read only access


Documentation bug: custom editing
09/06/2010
02:57
02:57

vchekan
Member
Members
Forum Posts: 10
Member Since:
07/06/2010
07/06/2010

I'm not sure where to file wkiki bugs, so let me know if there is a better place.
Common Editing properties -> edittype -> custom -> code example
describes function as:
function myvalue(elem)Which is wrong. This function is called in 2 different scenario: befor submitting data, to get data from custom editor, and before showing custom
editor to poppulate it with data.
Here is what I came up with for my application (can will be different in the wiki example context):function sitesGridValue(elem, operation, param) {It is crucial to recognize get/set operation, otherwise you will get some unky behavior, for example, custom field does not change
switch (operation) {
case 'get':
return $("table.ui-jqgrid-btable", elem).getRowData();
case 'set':
return $("table.ui-jqgrid-btable", elem)[0].addJSONData(JSON.parse(param));
}
}
when you navigate forward/backwards.
Forum Timezone: Europe/Sofia
Most Users Ever Online: 715
Currently Online:
40 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