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
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.
Thanks for the sample, I appreciate it, I managed to get it working for my project.
I am glad that you find my suggestion helpful.
Thank you for using Infragistics components.