We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

Grid filter window close event

Hello,

is there any event to know when my filter windows are closing/closed?
For now I was unable to find if any event is emitting.

I need event to know about both filter windows (just to know when these windows closes on OK, CANCEL, X click or in other situations):



1 Reply

PK Prasanna Kumar Viswanathan Syncfusion Team February 12, 2020 12:28 PM UTC

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
 


Loader.
Up arrow icon