We are required “Add Group” instead “Add Filter” in some case at initial level, How to achieve this?. I have attached the sample image for your reference (Inside Group we have 2 set of Filters condition. Ex: ((1&&1) || (1&&1)) ). PFA
Sample Snippet : Code Snippet
Note: In the above snippet sample i have altered the glue in Value property
Hello @vinoshmani ,
If I have understood your requirements correctly, you can customize the button of the list view.
Check the example: Code Snippet . I have added an additional button that adds groups to the first level with the help of the AddGroup(obj, after) method (this method is used in the menu "“Add group” option but we pass null as a second argument here). The logic of the “add filter” button remains unchanged.
Additionally, you could also check the example of adding a new filter to the last list’s item as well: Code Snippet .
If you need something different, please, provide us with more details of the desired result.
The labels text can be changed in the locale object: Code Snippet . In the example we change the [“Add Filter”] (used in the menu item) to the “Add Rule” .