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
- Extract the attached zip
- Update the igniteui-webcomponents-gridspackage to be newer one or locally built one that has Cell Merging feature.
- 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