Ehnancement
The "doesnotstartwith" and "doesnotendwith" filter operators are not included to OData
Reproduction of the problem
https://dojo.telerik.com/ulePuzah
Environment
Kendo UI version: 2021.2.616
jQuery version: 3.4.1
Browser: [all]
The grid shows 0 items. The expression preview is (Product Name Is not equal to '').
The grid should show 77 items. For an optimal user experience, the empty groups should be deleted when applying the filter.
The error "TypeError: Cannot read property 'type' of undefined" is thrown
Some error should be thrown, but one that the developer can recognize and handle appropriately.
Your example of persisting state saves it in localStorage. Say my user saves the state on Monday, and by Tuesday, a column is removed, renamed, has a different type... I need to handle that user's deprecated saved state.
When using the Filter control and configuring the Fields, if a 'number' type field is used, the value 0 (zero) is ignored, for example:
$("#filter").kendoFilter({ dataSource: dataSource, expressionPreview: true, fields: [ { name: "age", type:"number", defaultValue: 31 }, {name: "foo", type: "number", defaultValue: 0}, { name: "name", type:"string", defaultValue: "Rick" } ] });
'age' and 'foo' are both 'number' type fields, but the default value of 'foo' will be ignored when the filter is chosen in the UI.
Here is a runnable example of this, notice how when selecting 'age' from the fields dropdown, the value correctly defaults to 31, but selecting the 'foo' field will not have the value populate correctly:
Bug report
Using Array.prototype adds items to FIlter fields DropDownLists
Reproduction of the problem
Open below Dojo and run it.
https://dojo.telerik.com/izABOFaf/2
Open Featured DDL. The result is
Expected/desired behavior
Environment
Kendo UI version: [all]
jQuery version: x.y
Browser: [all]
When I navigate through the drop down on the left side to select a field to filter on, it will only grab the first 2 and the last option. When the element is opened it will properly go through all options. Reproducer: https://dojo.telerik.com/AruwArIP
I have made a recording of the bug here: https://imgur.com/a/kIgDa06