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
[Patch] Nested grids
18/05/2011
04:03
Avatar
vchekan
Member
Members
Forum Posts: 10
Member Since:
07/06/2010
sp_UserOfflineSmall Offline

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.

18/05/2011
10:37
Avatar
tony
Sofia, Bulgaria
Moderator
Members

Moderators
Forum Posts: 7721
Member Since:
30/10/2007
sp_UserOfflineSmall Offline

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.

Forum Timezone: Europe/Sofia

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

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

Administrators: admin: 66

Comments are closed.
Privacy Policy   Terms and Conditions   Contact Information