Filters are not saving

1 Answer 131 Views
Data Query Grid
John
Top achievements
Rank 1
Iron
John asked on 27 Apr 2022, 04:55 PM

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;
}

1 Answer, 1 is accepted

Sort by
0
Accepted
Preslava
Telerik team
answered on 02 May 2022, 10:23 AM

Hi John,

Thank you for the provided details.

That is indeed a known issue of the Filter component. Please accept our apologies for the caused inconvenience until a fix is released. Until then please use the proper order as a workaround - [filters] before [value].

The progress of the fix, can be tracked here:

https://github.com/telerik/kendo-angular/issues/3652 

Please let me know if I can provide any further information on this case.

Regards,
Preslava
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

John
Top achievements
Rank 1
Iron
commented on 02 May 2022, 03:11 PM

Thank you Preslava.  Works like a charm.
Tags
Data Query Grid
Asked by
John
Top achievements
Rank 1
Iron
Answers by
Preslava
Telerik team
Share this question
or