Skip to content

Grid state load with hidden columns triggers NG0100 error in ngAfterViewInit #4773

@yanmariomenev

Description

@yanmariomenev

Description

Grid state load that includes hidden columns triggers an NG0100 error during ngAfterViewInit change detection.

Error: NG0100: ExpressionChangedAfterItHasBeenCheckedError: Expression has changed after it was checked. Previous value for 'attr.aria-colcount': '5'. Current value: '4'. Expression location: GridComponent component. Find more at https://angular.dev/errors/NG0100

Steps To Reproduce

  1. Open the following example
  2. Hide one column and save the state.
  3. Reload the demo window and check the console.

Screenshots or video

Screen.Recording.2025-11-14.at.8.33.24.mov

Workaround

Use setTimeout or trigger Angular's change detection after loading the state.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions