Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Parent child rows #425

Open
lakshyadosi opened this issue Jul 25, 2024 · 6 comments
Open

Parent child rows #425

lakshyadosi opened this issue Jul 25, 2024 · 6 comments
Labels
answered This issue has been answered and is currently awaiting further action

Comments

@lakshyadosi
Copy link

lakshyadosi commented Jul 25, 2024

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

@webloopbox
Copy link
Contributor

@lakshyadosi Do you mean collapsible cells like in this example?

@DhenPadilla
Copy link

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

@Michota Michota added the answered This issue has been answered and is currently awaiting further action label Aug 22, 2024
@Michota
Copy link
Contributor

Michota commented Aug 22, 2024

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

Have you tried this @lakshyadosi? Does it actually solve the problem?

@dregre
Copy link

dregre commented Oct 2, 2024

I am interested to see the code of the examples but I cannot find it.

@ww1724
Copy link

ww1724 commented Oct 19, 2024

I am interested to see the code of the examples but I cannot find it.我有兴趣查看示例的代码,但我找不到它。

me too

@webloopbox
Copy link
Contributor

The source code for the examples can be found here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
answered This issue has been answered and is currently awaiting further action
Projects
None yet
Development

No branches or pull requests

6 participants