Parent child rows
Describe the bug Not able to create parent and child rows.
Current behavior Normal grid data is present
Expected behavior I want tree-like structure, where user can add parent rows and child rows inside the parent row. There should be a button on top which allows user to add parent row. And each parent has button in the action column named as Add child row, through which user can add child rows
@lakshyadosi Do you mean collapsible cells like in this example?
Saw this; I also ran into this earlier on;
But essentially to get this to work, the following props need to be populated even if in the documentation, it says they're optional:
isExpanded
and:
hasChildren
alongside parentId
If your rows have all 3 set correctly, then you'll render these correctly
Saw this; I also ran into this earlier on;
But essentially to get this to work, the following props need to be populated even if in the documentation, it says they're optional:
isExpandedand:hasChildrenalongside
parentIdIf your rows have all 3 set correctly, then you'll render these correctly
Have you tried this @lakshyadosi? Does it actually solve the problem?
I am interested to see the code of the examples but I cannot find it.
I am interested to see the code of the examples but I cannot find it.我有兴趣查看示例的代码,但我找不到它。
me too
The source code for the examples can be found here.