I am using the external filter example
https://www.telerik.com/kendo-angular-ui/components/grid/filtering/external-filtering/
When initially filter, it filters and saves the filterValue as it does in the example
When I closed and re-open I get the following message:
Error: There is no user-defined filter with 'sender_Name' field provided through the [filters] input property.
sender_name is the correct field. Below is the filters I am using.
export const caseFilters: FilterExpression[] = [
{
field: 'sender_Name',
editor: 'string',
},
{
field: 'assign_To',
title: 'Assign To',
editor: 'string',
},
{
field: 'last_Date',
title: 'Last Date',
editor: 'date',
},
{
field: 'case_Level',
title: 'Level',
editor: 'number',
},
];
<div class="example-config">
<p class="k-form-hint">
Click the button below to filter the Grid from an external Filter
component
</p>
<button kendoButton (click)="openFilter()" icon="filter">
Filter the Grid
</button>
</div>
<kendo-window *ngIf="opened" (close)="closeFilter()" [width]="620" [top]="300">
<div class="window-content">
<kendo-filter #filter [value]="filterValue" [filters]="caseFilters">
</kendo-filter>
<button kendoButton (click)="applyFilter(filter.value)" style="width:100%;">Apply filter</button>
</div>
</kendo-window>
public applyFilter(value: CompositeFilterDescriptor): void {
this.gridData = filterBy(this.orignalGridData, value);
this.loadGrid();
this.filterValue = value;
}