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
175
Igx-Hierarchical-Grid: Expand/Collapse Individual Rows By Key or Id?
posted

When going through the documentation for Hierarchical Grid, I noticed that there is a way to Collapse and Expand all Rows, is there a way do this by Key or Id? 

For our use case, users want the ability to Save changes to individual selected rows, and ideally once done, all the child grids of the just saved row would then be able to collapse. 

Is there a way to do this? Any help would be appreciated.

Thanks,

-Randall Blevins

Parents
No Data
Reply
  • 1080
    Verified Answer
    Offline posted

    Hello Randall,

    Thank you for posting in our community.

    What I can suggest for achieving your requirement is working with hierarchicalState accessor that IgxHierarchicalGridComponent class provides. This is an array consisting of all toggled rows.

    I have created a sample illustrating my suggestion using batch editing. When the "SAVE CHANGES" button is clicked, every expanded row that has a modified value will be collapsed.

Children