jquery-treegrid icon indicating copy to clipboard operation
jquery-treegrid copied to clipboard

New appended child is out of order

Open winonalakereid opened this issue 10 years ago • 1 comments

In the example below, if I had a button that added a new child for treegrid-1, it would show up in the table at the bottom. It isn't hard in jquery to make the the new child show up after the last tr with the class of treegrid-parent-1, but if that last child has children as well, the new treegrid-1 child shows up in the table before the children of the last child. In general I'm just having trouble adding children and having them show up in the correct order. Any help would be awesome!

Node 1Additional info Node 1-1Additional info Node 2Additional info Node 2-1Additional info

winonalakereid avatar Aug 14 '14 15:08 winonalakereid

I believe my problem is the same as this.

One level deep nest / groups properly

If it's deeper than one level it isn't nesting the child elements under the proper parent attribute. However, the open and close toggle icon, opens and closes the correct elements event though they aren't in the right location on the grid. I don't know if it's because the PK and Parent fields are strings and not integers (I'm using NoSQL). treegrid

skworden avatar Aug 18 '15 14:08 skworden