Feature Request:
At present, the fields.editorTemplate option of the Filter widget is exposed to modify and customize the editor widget for the value.
However, the DropDownList widgets for the fields and operators cannot be modified via the exposed configuration. For instance to add the Search(filter) functionality.
Hi Team,
When a date filter is applied in the new Filter widget, the preview looks like: "Date Is After 'Tue Jan 01 2019 00:00:00 GMT+0000 (Greenwich Mean Time)'" -- I'd like to be able to customize the displayed date format, something like adding "format:"{0:dd/MM/yyyy}" to the 'fields' object.
Thanks
Hi,
I notice you have added support for specifying the format of expressionPreview fields, which is great when handling dates and numbers, so thanks for that.
However, ideally I need to be able to use a template for the expression preview for certain fields. For example, take the scenario where you are filtering for 'user_id'. Currently I'm using a custom editor to present a drop-down list of user names to pass the user_id to the filter, which works well, but the expression preview looks like:
User Equals '132'
rather than:
User Equals 'Fred Bloggs'
If I could use a template for the expression preview, I could use a function to display the name associated with the user_id.
This is just one example: there are many others where a template would be useful in the Filter Panel expression preview.
We'd really like to see expanded support for enums in the Filter control. Two main components to this request would be:
Thank you!
Hi Team,
I'd like to request adding a format configuration for the Kendo UI Filter for Date fields.
Thank you!
There are occasions when the out-of-the-box filter operators can't be used, such as filtering on nested objects. In these situations I use a custom function for the filter operator.
It would be great if the Filter widget could support custom filter operators.
I realise this would be challenging, as it would break the save/load state function and would be difficult to handle in the expressionPreview.
I implemented the filter you can find on the documentation page. Let's say that the filter consists of a few fields and three of them are:
I want to have a filter named "Name" and be able to search all three items - instead of having three different filters. I have read the documentation but it does not seem to be any reference to it. I thought of something like the following might be possible:
fields: [
logic: "or",
{ name: "firstName", type: "string", label: "Name" },
{ name: "middleName", type: "string", label: "Name" },
{ name: "lastName", type: "string", label: "Name" }
]
Any workaround would be much appreciated.
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]
Hi Team,
I would like to request for the close button to have a built-in close event and a confirm configuration to help prevent accidentally removals of expressions.
Thank you!
Hi Team,
I would like to request the functionality to replace the Field selector with another component. For example, in my scenario, it would be beneficial to replace it with a Kendo UI DropDownTree.
Thank you!
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
Hi,
I've noticed (though it's not documented) that if the fields array of the Filter widget is not defined, it will use the fields defined in the dataSource, and the 'label', 'previewFormat', 'editorTemplate' and 'operators' properties can be added to the dataSource fields object to be applied to the Filter widget.
This is extremely helpful and should probably be described in the documentation.
I'd like to suggest (if it's not already another undocumented feature) that dataSource fields can be hidden from the Filter widget, perhaps with a simple boolean such as 'filter: false'
Thanks