Unplanned
Last Updated: 12 Aug 2021 13:51 by ADMIN
Brian
Created on: 06 Dec 2017 18:54
Category: Grid
Type: Feature Request
4
kendo-data-query "field" selectors should support functions
The filter descriptors support accessor functions in the "field" option. It would be great to see this implemented in the sort, group, and aggregate options.

const result = process(items, {
    filter: {
        logic: "and",
        filters: [{ field: x => x.getValue(), operator: "eq", value: 0 }], // <- supported
    },
    group: [
        field: x => x.getValue(), // <- not supported
        aggregates: [{ aggregate: "sum", field: x => x.getValue() }] // <- not supported
    ],
    sort: [{ field: x => x.getValue(), dir: "desc" }] // <- not supported
});

0 comments