What should I do if I don't want users to add conditions themselves?

What should I do if I don't want users to add conditions themselves?

I want to hide this.






1 Reply

YA YuvanShankar Arunagiri Syncfusion Team December 2, 2022 06:57 AM UTC

Hi Xu Zhi,


We have prepared the sample based on your requirement. please refer the below code snippet and sample file.


Query: What should I do if I don't want users to add conditions themselves?


Using the beforeChange event, we can prevent the adding the new rule and group.


onChange: function(args) {

        if (args.type === "insertRule" || args.type === "insertGroup") {

          args.cancel = true;

        }

      }


Query: I want to hide this?


Using the below CSS style to hide the group header.

.e-group-header {

      display: none;

    }


Please get back to us, if you need any assistance on this.


Regards,

YuvanShankar A


Attachment: App_837a93e9.zip

Loader.
Up arrow icon