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

Custom filter control for Enum column

2 Answers 189 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Pawel
Top achievements
Rank 1
Pawel asked on 17 Jun 2014, 11:28 AM
Hi Team,
I have a Kendo Grid with enum column defined (column has a 'values' property set). In filter popup, I want to implement my own MultiSelectCombo control to be able to filter the column with multiple values. How can I do that? For non-enum columns I can implement a 'ui' method on 'column.filterable' object, but it seems that the method is not invoked for enum columns.

2 Answers, 1 is accepted

Sort by
0
Accepted
Alexander Valchev
Telerik team
answered on 19 Jun 2014, 07:30 AM
Hello Pawel,

Yes the columns.filterable.ui feature is not supported for columns which have their "values" option set. I noticed that this information was missing from the documentation so I added a note in the columns.filterable.ui API reference. Please accept my apology for the inconvenience caused.

We cannot offer an out-of-the-box solution for this scenario. One possible approach is to hook-up to the filterMenuInit event and manually replace the default widget with your own. In this case however you should also handle the filtering manually (e.g. create the filter rules according to MultiSelect's value). This is a custom solution which I would recommend to avoid if possible.

Regards,
Alexander Valchev
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
0
Pawel
Top achievements
Rank 1
answered on 20 Jun 2014, 07:19 AM
Hello Alexander,
Thank you for a reply. I will give it a try and implement my own widget.
Tags
Grid
Asked by
Pawel
Top achievements
Rank 1
Answers by
Alexander Valchev
Telerik team
Pawel
Top achievements
Rank 1
Share this question
or