Q: DataTable expand row in a expanded DataTable?

UI Components for React
Post Reply
Mic
Posts: 10
Joined: 27 Sep 2010, 15:59

16 Oct 2020, 08:54

Hi...

I want to use two level of exansion in a DataTable but I wasn't able to do it. If I click on the expander of the "DetailRow1Col0", all expanded rows will be collapsed. How can I handle it or is it not possible?

Example:

> Row1Col0 Row1Col1 ...
v Row2Col0 Row1Col1 ...
--> DetailRow1Col0 DetailRow1Col1 ...
--v DetailRow1Col0 DetailRow1Col1 ...
------ SubDetaillRow1Col0 DetailRow1Col1 ...
------ SubDetaillRow1Col0 DetailRow1Col1 ...
------ SubDetaillRow1Col0 DetailRow1Col1 ...
--> DetailRow1Col0 DetailRow1Col1 ...
> Row3Col0 Row1Col1 ...

Regards,
Michael

mert.sincan
Posts: 4362
Joined: 29 Jun 2013, 12:38

23 Oct 2020, 15:54

Hi,

Please see our sample;
https://primefaces.org/primereact/showc ... /rowexpand

You can add/remove an item or items using 'expandedRows' state in our demo. It has a fully controlled mechanism.

Best Regards,

Post Reply

Return to “PrimeReact”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 2 guests