Collapsing all nested rows

Tags: #<Tag:0x00007f8b2b1b0c20> #<Tag:0x00007f8b2b1b0ab8>

Hi!

I’ve been searching for the collapseAll() method of the NestedRows plugin, but I’ve noticed that it doesn’t exist on the latests version.

Is there a way to collapse all collapsible rows (nestedRows property) by default on loading the datagrid?

I didn’t find any answer in the forum updated that I can follow

Thanks in advance
Jose

Hi Jose,

It works well on Chrome https://stackblitz.com/edit/vitejs-vite-knweng?file=main.js,index.html&terminal=dev. I’m using Handsontable v14.1.0 (vanilla). Are you on any wrapper?

Hi Aleksandra,

Thanks for the quick response as always

I have updated to handsontable v14 (I was using 13) but still not working, the thing is that API documentation refers that there is no methods for collapsing:

As per your question, yeas, I’m using the library in NextJS and I’ve created a HandsontableWrapper, does that makes any difference?

Thank you for the details. You are right. When I wanted to create a NextJS example I was able to get some of the NestedRows plugin’s method, but the collapseAll() is not among them. I will discuss that internally and get back to you.

OK, that was my typo I guess. I have this demo working this way https://stackblitz.com/edit/vitejs-vite-qxz5km?file=src%2FApp.jsx&terminal=dev via collapsingUI.