This is a migrated thread and some comments may be shown as answers.

Supported Custom Editors?

1 Answer 85 Views
Filter
This is a migrated thread and some comments may be shown as answers.
MJT
Top achievements
Rank 1
MJT asked on 27 Sep 2019, 03:23 AM

The custom editor option for the Filter widget, what controls are supported?

Trying to use, for example, the kendoMultiSelect results in an error, this dojo is just the standard custom editor editor demo but with the categoryDropDownEditor() function updated to return a kendoMultiSelect

The multi select does work in the filter as expected, but throws an "Unexpected identifier" exception to the console when trying to apply to the datasource .. this suggests is not supported, but please correct me if I am wrong  :)

In an ideal world, you could configure a field with a kendoMultiSelect as the editor, have operator options for Contains & Does not contain, and then select one or more values in the multi select, these would then be applied to the datasource

I do understand that one can build the same query by adding multiple rules, but that could get quite verbose

 

Thanks for any feedback!

 

 

1 Answer, 1 is accepted

Sort by
0
Viktor Tachev
Telerik team
answered on 30 Sep 2019, 01:17 PM

Hi,

 

By design the Filter component was intended to add one condition per expression. Having a MultiSelect widget as an editor would mean including more than one condition for filtering from a single expression.

Such functionality is not available out of the box, however, you can use a bit of custom logic similar to the one in the article below. This way you can extract the selected values from the MultiSelect and use them to build the filter expression. 

https://docs.telerik.com/kendo-ui/knowledge-base/multiselect-used-for-column-filtering

 

Regards,
Viktor Tachev
Progress Telerik

Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Tags
Filter
Asked by
MJT
Top achievements
Rank 1
Answers by
Viktor Tachev
Telerik team
Share this question
or