SlickGrid
SlickGrid copied to clipboard
Tree item with children
Its possible create an item with children? I was looking the examples and I didn't see anything like that.
Is this any good: http://6pac.github.io/SlickGrid/examples/example5-collapsing.html ?
I saw that, but can I insert an item with children? I have an item where I have a field with quantity like 3, and I need to create 3 children to add a serial number or something like that.
I believe so. The essential element of this example is:
d["id"] = "id_" + i;
d["indent"] = indent;
d["parent"] = parent;
If you insert items with the appropriate parent into the data. Refresh the grid, and you'll get child elements. You'll have to do a little bit of work to get all this operating smoothly. See the SlickGrid Manifesto