Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
510
Collapse/Expand all in GroupBy?
posted

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

Parents
  • 18204
    Verified Answer
    Offline posted

    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.

Reply Children
No Data