Skip to content

Grid Filter: change detection issue #16903

@Timmeeeey

Description

@Timmeeeey

Description

When clicking on the filter chip in a grid, sometimes nothing happens until I move the mouse a bit.
I think that at the end of onChipClicked there needs to be a this.filteringService.grid.notifyChanges() so that change detection runs.

public onChipClicked(expression?: IFilteringExpression) {
if (expression) {
this.expressionsList.forEach((item) => {
item.isSelected = (item.expression === expression);
});
} else if (this.expressionsList.length > 0) {
this.expressionsList.forEach((item) => {
item.isSelected = false;
});
this.expressionsList[0].isSelected = true;
}
this.filteringService.grid.navigation.performHorizontalScrollToCell(this.column.visibleIndex);
this.filteringService.filteredColumn = this.column;
this.filteringService.isFilterRowVisible = true;
this.filteringService.selectedExpression = expression;
}

  • igniteui-angular version: 21.0.10

Metadata

Metadata

Assignees

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions