Forum
04:03
07/06/2010
Hi all,
While implementing a grid as a cusom element of a parent grid I had to fix a couple of bugs.
1. In forms editor "rp_ge" variable is overriden by child grid. After child is called, parent lose its settings. Fix for this one is here:
https://github.com/vchekan/jqGrid/commit/5888295db768521ee466e05f9dee6654407faa7c
2. When building object on "commit" button, form editor travels all the depth down and fetches properties of child grid. Thus child grid properties are inserted twice: once as properies of custom child element and once as properties of parent grid object. Fix for this one is here:
https://github.com/vchekan/jqGrid/commit/9a5dba9cbac520f24d8c679b93f1f9ecc5867481
May be not the most elegant fix, because I could not figure out how to prevent fetching children of ".FormElement" but it works.
With those 2 fixes you can create a grid as a custom element of another grid and you can edit complex nested json objects.
Tony, let me know if you want me to rearrange fixes in my repository clone so it is easier for you to pull them.
Vadim.
10:37
Moderators
30/10/2007
Hello Vadim,
Thank you very much for these.
I will test them.
The second fix is OK, but I'm not sure for the first one - instead that they look simple.
Thanks . Will replay.
Tony
For professional UI suites for Java Script and PHP visit us at our commercial products site - guriddo.net - by the very same guys that created jqGrid.
Most Users Ever Online: 715
Currently Online:
23 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