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. (Last updated on: June 24, 2019).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

search box in excel filter

Thread ID:

Created:

Updated:

Platform:

Replies:

144438 May 6,2019 05:56 PM UTC May 8,2019 06:40 AM UTC Angular - EJ 2 3
loading
Tags: Grid
ttArbor
Asked On May 6, 2019 05:56 PM UTC

is there some way I can change search operator in excel filter search box to 'contains' instead of 'startswith'?

Thank you, 
T


Pavithra Subramaniyam [Syncfusion]
Replied On May 7, 2019 05:21 AM UTC

 
Thanks for contacting Syncfusion support. 
 
You can change the Excel searchbox operator from ‘startswith’ to ‘contains’  by using the ‘actionBegin’ event of Grid component. Please refer to the below code example, documentation link and sample link for more information. 
 
[component.ts] 
@Component({ 
    selector: 'app-root', 
    template: '<ejs-grid #grid [dataSource]='data' (actionBegin)="actionBegin($event)" allowPaging='true' allowFiltering='true' [pageSettings]='pageSettings' [filterSettings]='filterSettings'> 
        <e-columns> 
            .  .  . 
        </e-columns> 
    </ejs-grid>', 
}) 
 
export class AppComponent { 
    .  .  . 
    ngOnInit(): void { 
        this.data = orderDataSource; 
        this.filterSettings = { type: 'Excel' }; 
    } 
    public actionBegin(e: any): void { 
       if(e.requestType == 'filtersearchbegin'){ 
              e.operator="contains"; 
        } 
    } 
} 
 
 
 
Please get back to us if you need any further assistance on this. 
 
Regards, 
Pavithra S. 


ttArbor
Replied On May 7, 2019 02:11 PM UTC

works great!

Thanks

Pavithra Subramaniyam [Syncfusion]
Replied On May 8, 2019 06:40 AM UTC

Hi thao,  

Thanks for your update. 

We are happy to hear that the provided solution works. 

Please contact us if you need any further assistance. As always, we will be happy to assist you.  

Regards,  
Pavithra S. 


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile
Live Chat Icon