Sir, a few questions with regard to Hierarchical Grid
1. Can the Child Grid be defined in a ng-template in HTML?
All examples of the Hierarchical grid define the child in the in the typescript code. The challenge with the grid defined in typescript code is that data bindings to the grid need to be managed programatically. When data changes in the child grid ( settings data such as 'allowPaging', grid data and column bound data such as 'textAlign'), then when data changes the grid must be refreshed.
The problem with a grid.Refresh() is that it closes all the child and grandchild grids, resetting not only the data, but the view of the grid itself. I am hoping that binding in HTML may cause the grid bound elements to refresh on their own without requiring to call 'Refresh() on the child and grandchild grids. The parent grid does bind correctly without the need to call Refresh()
2. Can the state of the Grid preserved during Refresh() -How can I refresh child data without the child data grid closing?
As mentioned above, whenever child data changes the only way to reflect those changes in the Child Grid is to call Refresh() on the parent grid. Calling Refresh() closes all child and grandchild grids. This is most annoying as simple use cases become impossible. Say Column Y value updates in response to Column X entry. The update only occurs after Refersh() and then the whole grid resets to every child and grandchild closed. It makes the child grid useless for anything other than basic data entry. The child grid can never have the feature richness of the parent grid.
One solution is to query to current view state of the grid before a refresh (which child and grandchild grids are open), and then reopen them after refresh(). But this is not ideal as it will cause the grid to 'flicker'
How can I refresh child data without the child data grid closing?
James