Skip to content

[Elements] mergeStrategy proeprty is of type class and cannot be set directly to a merge strategy type without casting. #16299

@skrustev

Description

@skrustev

Description

Currently in general interfaces generate for the Elements grid as classes which prevents from the different merging strategies for the grid to extend that interface, so the property mergeStrategy for example to be able to be set directly like this:

treeGrid.mergeStrategy = new IgcByLevelTreeGridMergeStrategy();

You need to cast it the following way:

treeGrid.mergeStrategy = new IgcByLevelTreeGridMergeStrategy() as IgcGridMergeStrategy;
  • igniteui-angular version: 20.1.x
  • browser: any

Steps to reproduce

  1. Extract the attached zip
  2. Update the igniteui-webcomponents-grids package to be newer one or locally built one that has Cell Merging feature.
  3. Run the sample

Result

You cannot assign directly new instance of a merge strategy to the mergeStrategy property.

Expected result

User should be able to assign merge strategy instance directly without casting it.

Attachments

cell-merging-sample.zip

Metadata

Metadata

Assignees

Labels

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions