Skip to content

[Hierarchical Grid] Advanced filtering does not open when first record for nested row layout doesn't have data #15908

@MayaKirova

Description

@MayaKirova

Description

Hierarchical grid with Advanced filtering in the toolbar does not open when you click the Advanced Filtering button.

  • igniteui-angular version: 19.2.8
  • browser: N/A

Steps to reproduce

If you have the following structure for the HGrid:

  • Singers Data (root grid data)
    • Albums array (first row island)
      • Songs array (nested row island)

Then if under the the first record in Singers data, the first item in Albums does not have a Songs array, the error is thrown.

  1. Open https://stackblitz.com/edit/zlfrzzv2-gqsuslzq
  2. Click the advanced filtering button on the root level of the grid.

For original repro for Elements you can refer to this sample: https://staging.infragistics.com/products/ignite-ui-web-components/web-components/components/grids/hierarchical-grid/advanced-filtering#web-components-hierarchical-grid-advanced-filtering-example

Result

Error is thrown:

ERROR TypeError: Cannot read properties of undefined (reading '0')
at 1623.a2d35d56.chunk.js:8:585747
at Array.reduce ()
at wl.reduce (1623.a2d35d56.chunk.js:2:554487)
at e.generateChildEntity (1623.a2d35d56.chunk.js:8:585686)
at 1623.a2d35d56.chunk.js:8:585321
at Array.reduce ()
at wl.reduce (1623.a2d35d56.chunk.js:2:554487)
at e.generateSchema (1623.a2d35d56.chunk.js:8:585292)
at get schema (1623.a2d35d56.chunk.js:8:576158)
at e.generateEntity (1623.a2d35d56.chunk.js:2:1578003)

And dialog does not open.

Expected result

Dialog opens with no error.

Attachments

Attach a sample if available, and screenshots, if applicable.

Metadata

Metadata

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions