My Kendo grid looks like this:
<kendo-grid
[data]="gridData"
[pageSize]="state.take"
[skip]="state.skip"
[sort]="state.sort"
[filter]="state.filter"
filterable="menu"
(dataStateChange)="dataStateChange($event)"
>
In the component.ts file, I have the following code:
public dataStateChange(state: DataStateChangeEvent): void {
this.state = state;
// Want to extract filter values here
}
I am trying to get the filter values and field names from the above function in order to pass them to the API for server-side filtering. However, I am having trouble extracting the values from the state object.
Is there a way to extract fields and values from the state object?