Unplanned
Last Updated: 27 Apr 2021 10:34 by ADMIN
IT Dept
Created on: 26 Apr 2019 13:46
Category: KendoReact
Type: Feature Request
8
Allow setting CompositeFilterDescriptor from GridFilterCell

Currently the GridFilterCell OnChange returns a subset of a FilterDescriptor (A value an an Operator to run on the value), which allows a custom filter cell to create one filter rule (FilterDescriptor). However, the CompositeFilterDescriptor structure allows a lot more flexibility. `month == 'January' OR 'March' OR 'May'`. If the GridFilterCell could be passed a CompositeFilterDescriptor instead of the current subset, then a custom filter cell could be much more powerful.

In an orders grid for instance, with a status of Pending, Paid, Shipped, and Delivered a "Show/Hide Shipped" button would exclude or include the Shipped and Delivered orders when clicked. Or a list of checkboxes to choose the statuses you want to see (like the JQuery Grids support).

TL;DR: There is currently no way to re-implement multi-checkboxes or other complex filtering interfaces with the Kendo React Grid without re-implementing all of the filtering logic manually from scratch, as the Existing filter cells don't support this and a custom GridFilterCell can't be configured to return that logic in a single FilterDescriptor. 

5 comments
ADMIN
Nikolay
Posted on: 13 Sep 2019 14:01
Hi Eric,

The thread is duplicated with this forum https://www.telerik.com/forums/complex-filtering-in-gridfiltercell, so I suggest to continue the discussion there.

Regards,
Nikolay
Progress Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
IT Dept
Posted on: 10 Sep 2019 19:13
Disregard my above discovery, that doesn't work with an MVC backend filtering solution. The custom function is passed as text to the backend where it's useless. 
IT Dept
Posted on: 10 Sep 2019 16:57
After discovering that the operation property on custom FilterCells can be a function, much of this functionality can be achieved. The documentation could better point this out, and the typing on that property (`string | Function`) could be better, `( cellValue: any, filterValue: any) => boolean` for instance at least implies the use from the type definition.
IT Dept
Posted on: 06 Sep 2019 15:23
I can't even find a way to define a date filter for a cell since you can only do Equals, greater than, less than, but no way to account for timestamps by having the user pick one date then setting two filters: Greater than Date and Less than Date+1
ADMIN
Stefan
Posted on: 29 Apr 2019 06:46
Hello, Eric,

Thank you for the request.

The team will review it and see if we can offer an improved approach for handling cases like this one. Then based on its popularity we will add it to our roadmap.

Regards,
Stefan
Progress Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items