Description
Open dev samples
- igniteui-angular version: 10.1.0
Steps to reproduce
- Open dev samples, go to State directive samples
- Open hier grid
- Move columns in the child grid
- Save state
- Restore state
Note: It seems that resetting the column list through grid.columnList.reset(newColumns), leads to trigerringonColumnsChanged, which triggers the event for the root grid:
|
super.onColumnsChanged(this.columnList); |
, which eventually restores the columnList back to the autogenerated columns:
|
this.columnList.reset(this._autoGeneratedCols); |
Result
The column list is resetted as initially, instead of restoring to the saved state.
Expected result
The column list to be restoring of the saved state.
Description
Open dev samples
Steps to reproduce
Note: It seems that resetting the column list through
grid.columnList.reset(newColumns), leads to trigerringonColumnsChanged, which triggers the event for the root grid:igniteui-angular/projects/igniteui-angular/src/lib/grids/hierarchical-grid/hierarchical-grid.component.ts
Line 420 in d7ab1c1
, which eventually restores the columnList back to the autogenerated columns:
igniteui-angular/projects/igniteui-angular/src/lib/grids/grid-base.directive.ts
Line 4963 in d7ab1c1
Result
The column list is resetted as initially, instead of restoring to the saved state.
Expected result
The column list to be restoring of the saved state.