Editor - show and hide child rows

Editor - show and hide child rows

mccloudmccloud Posts: 35Questions: 15Answers: 2

Is there an Editor example that shows how to hide child rows which are attached to a parent row in the host table.?

Replies

  • allanallan Posts: 63,516Questions: 1Answers: 10,472 Site admin

    Something like this?

    Allan

  • mccloudmccloud Posts: 35Questions: 15Answers: 2
    edited March 2017

    I was thinking of more something like in this example

    https://datatables.net/examples/api/row_details.html

    but with more help of how it can be implemented in a datatable generated for the Editor.

  • allanallan Posts: 63,516Questions: 1Answers: 10,472 Site admin

    Ah I see - thanks for the clarification. I don't have an example showing how to use child rows with Editor directly I'm afraid. However, the techniques demonstrated in the blog post I linked to could be used equally well for child rows - instead of using a separate DataTable as the interface for the child rows, you'd need to use the child row API display - probably creating a DataTable inside the child row display which can then be initialised and populated like normal.

    Allan

This discussion has been closed.