Unplanned
Last Updated: 07 Jan 2021 07:58 by FISMA-IRM
Christopher
Created on: 15 Apr 2020 02:28
Category: Grid
Type: Feature Request
3
How to modify the date filter settings on grid filter menu?

Is it possible to modify the default filter for a date on a grid so that it is a "between" filter? i.e. the second clause will show "Is before or equal to" instead of "Is after or equal to"?

 

https://stackblitz.com/edit/angular-ygnmj1

Preferred default:

instead of:

2 comments
FISMA-IRM
Posted on: 07 Jan 2021 07:58

This request. is excactly what we and our clients also need.
I guess the easiest change from Telerik side for this feature would be to change the default second filter operator for all date  columns to Is before or equal to.

Of course, the best solution would be a property to select whatever we want, something like:

        <kendo-grid-date-filter-menu
          [column]="column"
          [filter]="filter"
          [filterService]="filterService"
          [extra]="true"
          [formatPlaceholder]="year'yyyy'month'mm'day'dd' }"
          format="dd/MM/yyyy"
          operator1="gte"
          operator2="lte"
          >
        </kendo-grid-date-filter-menu>
ADMIN
Svet
Posted on: 15 Apr 2020 14:13

Hi Christopher,

Thank you for the provided screenshot.

Indeed, at the moment the operator property of the DateFilterMenu component can be used to change the default filter operator for both DatePickers and there isn't an option that allows to change the default operator for each DatePicker separately. That is why I converted this ticket to be a public feature request item:

https://feedback.telerik.com/kendo-angular-ui/1461840-how-to-modify-the-date-filter-settings-on-grid-filter-menu

That will help us to track the demand for such functionality and we will be able to add the required functionality as a built-in feature in a future release of Kendo UI for Angular.

At the moment the requirement could be achieved by creating a custom filter component.

Thank you for the provided feedback once again. Feel free to share any additional details about the requirement by commenting. Also do not hesitate to open a new support thread in case further assistance would be required for the implementation of a custom filter component. Thank you.

Regards,
Svetlin
Progress Telerik

Progress is here for your business, like always. Read more about the measures we are taking to ensure business continuity and help fight the COVID-19 pandemic.
Our thoughts here at Progress are with those affected by the outbreak.