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

Query Builder: how to remove or disable 'Add Group" button ?

is it possible somehow to remove/disable "Add Group" item (see screenshot below)?

4 Replies

SI Silambarasan I Syncfusion Team February 18, 2019 12:20 PM

Hi Viktor, 
Thank you for contacting Syncfusion support. 
We have checked your reported query and currently, we don’t have a built in option to remove/disable the ‘Add Group’ item in EJ2 QueryBuilder. However, we have prepared a sample level solution to achieve this requirement.  
In that, we have faced an issue with the sample level solution. On further analysis, we confirmed this as a defect and logged a defect report. The fix for this issue will be included in our Essential Studio 2019 Volume 1 release which has been scheduled to be rolled out in the mid of March, 2019. 
We will update you the sample once released, and we appreciate your patience until then. 

VK Vinoth Kumar Sundara Moorthy Syncfusion Team April 3, 2019 12:47 PM

Hi Viktor, 
We are glad to announce that our Essential Studio Volume 1, 2019 release (v17.1.0.38) is rolled out. Now you can enable or disable the ‘Add Group’ item in QueryBuilder using ‘ShowButtons’ settings. Please check the below code snippet, 
<ejs-querybuilder #querybuilder class="row" width="70%" [dataSource]="dataSource" [showButtons]="showButtons" [rule]="importRules" (created)="createdControl()"> 
export class DefaultQueryBuilderComponent { 
    public showButtons: Object = { groupInsert: false, groupDelete: true, ruleDelete: true} 
Could you please check the above sample and get back to us if you need any further assistance on this? 
Vinoth Kumar S 

VI Viktor April 4, 2019 02:01 AM

it looks really great! :)
you can close the issue!

VK Vinoth Kumar Sundara Moorthy Syncfusion Team April 4, 2019 05:30 AM

Hi Viktor, 
You are most welcome. Please feel free to contact us if you need any further assistance on our Syncfusion components. 
Vinoth Kumar S 

Live Chat Icon For mobile
Up arrow icon