Hi
I was wondering if it's possible to add a button that toggles collapse/expand all in GroupBy? I know the igTree has such method ".igTree( "collapse", node:object );" but I can't seem to find something similar in GroupBy's methods?
Thanks,
Armando
Hello Armando,
Thank you for posting in our forums!
There are no methods available to collapse/expand the rows like you mention. Instead, you can use jQuery to trigger the mousedown event on the expand icons. You can do this like so:
$(".ui-iggrid-expandbutton.ui-iggrid-expandbuttonexpanded.ui-icon-minus").mousedown();$(".ui-iggrid-expandbutton.ui-icon-plus").mousedown();
I have put together this jsFiddle to demonstrate this.
If you have any further questions with this, please let me know and I will be glad to help.
Awesome! thanks!