Disable/ Enable Query Builder In Code

Hi There,

I am using Query Builder (ejs-querybuilder) in an Angular app and I am trying to grey out (disable) the component in order to disable user from creating a new item (disable user from clicking on the + button and create a new item) based on some condition in code.

I tried to find a related property for that in docs but I couldn't find one.

I appreciate if you show me a solution.

Regards,
Mohammad Hadadi.

3 Replies 1 reply marked as answer

SP Sangeetha Priya Murugan Syncfusion Team October 8, 2020 12:02 PM UTC

Hi Mohammad, 
 
Thank you for contacting Syncfusion support. 
 
We have checked your reported requirement and we would like to let you know that, it can be achievable in our QueryBuilder. By setting the disabled property as true for add button in created event. For your convenience, we have prepared the sample based on your requirement. Please find the link below. 
 
 
Please check the above sample and get back to us if you need further assistance. 
 
Regards, 
Sangeetha M 


Marked as answer

MH Mohammad Hadadi October 14, 2020 05:57 PM UTC

Hi Sangeetha,

Thanks for your reply.

As I need to define some conditions to disable the component , I used jQuery to disable the buttons after parent component initialization.

Regards,
Mohammad Hadadi




SP Sangeetha Priya Murugan Syncfusion Team October 15, 2020 05:40 AM UTC

 
Hi Mohammad  
 
Thank you for your update. 
 
We are happy to hear that your requirement has been achieved. Please feel free to contact us, if you need any further assistance on this. 
  
Regards, 
Sangeetha M 



Loader.
Up arrow icon