Skip to content

IgxGridState directive not able to reset columnList for igxHierarchicalGrid. #7925

@hanastasov

Description

@hanastasov

Description

Open dev samples

  • igniteui-angular version: 10.1.0

Steps to reproduce

  1. Open dev samples, go to State directive samples
  2. Open hier grid
  3. Move columns in the child grid
  4. Save state
  5. 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:

, 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.

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions