Nested Rows, Event to know all the or expanded or collapsed

Tags: #<Tag:0x00007efc72f45ab8>

HI Team,

when we expand or collapse all the nested rows is there any event or function that returns true or false . We need to perform some logic based on that . I have tried afterGetRowHeader hook but it not giving exact length of collapased rows it is returning actualy count -1 . Could you please help to find the solution.

Thanks
Vikram

Hi @vikram.reddy

Thank you for contacting us. Currently, we don’t have any hook that will let you know if the nested rows are collapsed or expanded. However, you can check the current rows count with countRows() method inside afterRender hook:

https://jsfiddle.net/aszymanski/grq7wkmh/

With each collapse/expand operation you will get the information about the current row count. Let me know if that will work for you.