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.
Copyright 2014 TriRand LtdAll Rights ReservedRSS
Back to Top