Hi,
I was looking into state persistence for hierarchical grid and it seems like there is not out-of-the-box support for feature that I'm trying to implement so I'm looking for help here.
I'm trying to implement such grid where user can save state for both parent and child grids (rowIsladns), but, child grids should ALL have the same layout, column widths and so on... So like a single state for all row islands.
With current implementation of state persistence, each row island has it's own state and it's tied to parentRowId which means if I load some other data, the state/s are of no use for this scenario, and also, since every rowIsland has it's own state, there is no "single" state so I would need to choose one of those to be the "master" state (which is not a major issue).
But, when reading state for hierarchical grid, "RowIsland" state/s are not included unless they are toggled open. Which means, if I save state for hierarchical grid while RowIslands are closed, I'm going to lose state of those.
1st Q: is there a way to implement such state persistence where, when I click some button "SAVE", I'm saving parent grid layout (which already works) and also, for example, always take the 1st RowIsland state and save it as "child grid state" and apply that state to all child grids when I reload page? So like a child grid state that is not tied to specific row island and not tied to specific rowParentId, kinda like saving a parent grid state?
My current solution idea - I could maybe show a hint to user that it is required to have at least one RowIsland open when saving state in order to also read child grid state, and if more rowIslands are open, it will take the first one's state.And if no RowIslands are open, or grid is empty, it will ignore it and keep the previously saved/default state.
This leads to second question.
2nd Q - It seems like "OnColumnInit" does not trigger for RowIsland component? So I'm not able to restore columns templates for row islands. How is that supposed to work? Or does it work only for parent grids?
Thank you.