Filtering the QueryBuilder fields names by contains

Hello,

I would like to ask you if there are any way to change the way the QueryBuilder components fields names are being filtered? As far as I know when I open the field picking dropdownlist it only allows me to search in the beginning of the string (starts with), but not contains.

I am using the QueryBuilder component v. 20.1.55 on our client side.

Best Regards,


2 Replies

YA YuvanShankar Arunagiri Syncfusion Team June 1, 2022 04:16 AM UTC

Hi Ignacy,


We have validated your reported query and achieve your requirement by using the fieldModel property of the query builder and filterType property of the dropdownlist.

Please refer the below code snippet.


[app.component.html]:


<ejs-querybuilder #querybuilder class="row" [dataSource]="dataSource"

 [fieldModel] = "{allowFiltering : true, filterType : 'Contains'}">


Could you please check the above code and get back to us, if you need any further assistance on this. 


Sample link: https://stackblitz.com/edit/angular-3zkrn9?file=app.component.html


Regards,

Yuvan Shankar A



YA YuvanShankar Arunagiri Syncfusion Team June 1, 2022 04:29 AM UTC

Hi Ignacy,


Use this sample link for this requirement.

Sample link: https://stackblitz.com/edit/angular-ckpkj9?file=app.component.html


Regards,

YuvanShankar A


Loader.
Up arrow icon