Hi Ac,
Greetings from syncfusion support
Query: “is there any event to know when my filter windows are closing/closed?”
Yes, the actionBegin and actionComplete events will be triggered. The actionBegin event triggers when Grid actions such as sorting, filtering, paging, grouping etc., starts and then the actionComplete event triggers when Grid actions such as sorting, filtering, paging, grouping etc. are completed. Please refer the below code example and API for more information.
App.component.html
<ejs-grid #grid [dataSource]='data' (actionBegin)='begin($event)' (actionComplete)='complete($event)' allowPaging='true' allowFiltering='true' [pageSettings]='pageSettings' [filterSettings]='filterSettings'>
<e-columns>
. . . . . . . . .
. . . . . . . . .
</e-columns>
</ejs-grid>
|
App.component.ts
export class AppComponent {
public data: Object[];
@ViewChild('grid')
public grid: GridComponent;
ngOnInit(): void {
this.data = orderDataSource;
}
begin(args): any {
if(args.requestType === "filtering") {
//triggered
}
}
complete(args): any {
if(args.requestType === "filtering") {
//triggered
}
}
}
|
Regards,
Prasanna Kumar N.S.V