Kendo-angular: Kendo Grid clear filter button modifies input filter

Created on 6 Jun 2019  路  4Comments  路  Source: telerik/kendo-angular

All inputs should be considered immutable due to one-directional dataflow. It is common practice and it works correctly in most situations, for example - if you add filter via filter row, @Input filter / filters are not modified - changes are pushed via @Output() filterChanges etc.

However - clear of the filters via Kendo grid "clear button"
image

DOES change property Filters of @Input filter (CompositeFilterDescriptor) .
image

This is Input mutation and this violates uni-directional dataflow and it will crash with things like ngrx with strict immutability.

Expected behavior
None part of grid should mutate inputs.

Version:
version "3.14.1"

Bug grid

All 4 comments

I have a similar problem when using kendo-grid-string-filter-cell.

<ng-template
    kendoGridFilterCellTemplate
    let-filter
    let-column="column"
>
    <kendo-grid-string-filter-cell
        [showOperators]="showOperators"
        [column]="column"
        [filter]="filter"
    >
    </kendo-grid-string-filter-cell>
</ng-template>

@Input filter, which comes from "let-filter", is changed by this:
image

any progress?

Fix available in latest dev version.

Fixes released in kendo-angular-grid 4.2.0 and kendo-data-query 1.5.2

Was this page helpful?
0 / 5 - 0 ratings