Unplanned
Last Updated: 25 Jul 2024 12:43 by John
Bill
Created on: 05 Aug 2022 16:02
Category: Filter
Type: Feature Request
7
Toggle the visibility of the Add/Or and AddGroup buttons

Hello,

We have been starting to use the Filter Feature to open up a Dialog for users to customize the filter, but it would be nice to be able to hide some of default buttons, and format the width around the filter expressions.  We need to hide some of these as we are not building the backend to handle the need for some of these items.

For example:

- We are not building the ability to allow for an OR between Filters, so being able to hide the "And/Or" buttons would be helpful.

- We are not building the ability to handle groups of statements, just one list of filers, so removing the "Add Group" button would be helpful.

- We are using the template ability to customize one of our Expressions with a template the uses the <kendo-multiselecttree> dropdown, but really don't need the extra dropdown to list the Operator, so having the ability to remove the operator drop down completely for this one Expression would be helpful.

- Being able to adjust the width of the three boxes in the Filter expression as I think the Operator box is too wide.

I attached what it is we are trying to accomplish it it helps.

Thanks,

Bill

2 comments
John
Posted on: 25 Jul 2024 12:43

Based on this request : https://github.com/telerik/kendo-angular/issues/1596 I added the following.

  encapsulation: ViewEncapsulation.None,

.k-filter kendo-filter-group > .k-filter-toolbar .k-toolbar {
  .k-toolbar-button-group, .k-toolbar-button:not(:nth-child(2)) {
    display: none;
  }
}

 

 

ADMIN
Martin Bechev
Posted on: 12 Aug 2022 11:26

Hi Bill,

Thank you for the provided feedback.

Toggling the visibility of the And/Or and AddGroup buttons looks like a nice addition to the component. We will track the customer demand for this feature here.

About removing the operators or changing its width, please cast your vote for the following feature request about providing  an operator template:

https://feedback.telerik.com/kendo-angular-ui/1566613-template-for-the-operators

The template would allow the developer to create a custom operator component and customize its styles as necessary.

 

Regarding the remaining controls of the FilterExpression, the developer can utilize the kendoFilterValueEditorTemplate to provide a custom control for the value filed and change its styles as necessary.

About the filed control, I opened a separate feature item on your behalf here:

https://feedback.telerik.com/kendo-angular-ui/1576013-template-for-the-fields

Regards,
Martin
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.