Child Rows

Child Rows

ShaunRShaunR Posts: 2Questions: 1Answers: 0

I know there are docs and examples showing child rows but they don't really fit into what i'm looking to do. This is my first attempt at using Data Tables too btw.

What I have is a table listing a clients products. Each row contains the Product, Price, Due Date, Status. Then i have child products, these are products that show all the same info but are a child of the parent product. As of now i create custom arrays server side, we loop through the products, display the product, check for children, then display the children, and move onto the next product.

I want to use data tables to show the parent and child rows but it's important that when sorting that the children stay below the parent row! Also, when sorting a row by for example the product, it would do a sub sort of the children under each parent. So that when viewing the children under a parent, they would be in A-Z order.

Any advice?

This discussion has been closed.