I'm filtering a store connected to a grid, but when I apply the filter gives error: "TypeError: Cannot read properties of undefined (reading 'length')".
I've attached an image of the source location that's giving error.
I'm trying to reproduce the error in the examples, but I'm not succeeding.
Ok, for the filter feature configured with an Object like that, you should provide a property to filter by:
//<debug>
if (!this._filterBy) {
if (!this.property) {
throw new Error('CollectionFilter must be configured with the name of a property to test in candidate items');
}
}
//</debug>
I know that the filter configured this way must have the events. But it would be interesting to put this validation and give an error saying it was set wrong, then to show a property error that does not exist.