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

Specifying values for column as well as a custom filter UI

1 Answer 17 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Chris
Top achievements
Rank 1
Chris asked on 16 May 2014, 03:10 PM
Hi,

I've added a column to my grid that contains foreign key values, which I obviously don't want to show, so I've specified the values using the column.values configuration property.  However, there are quite a lot of different options, so I want to change the column filter to have a combo-box rather than a drop down list, but the grid won't allow me to use values and specify a custom filter UI.

I've created a Kendo dojo example here.

Thanks.

1 Answer, 1 is accepted

Sort by
0
Alexander Popov
Telerik team
answered on 20 May 2014, 09:39 AM
Hello Chris,

I am afraid that specifying a custom filterable.ui option is not supported for columns that have their values option populated. It is still possible to create a custom filter menu by subscribing to the Grid's filterMenuInit event. Once the event is triggered you can check the e.field argument and decide whether to override the existing filtering widget or not. Keep in mind that the default widget is bound to the DataSource's filter and overriding it will break this binding, which means that you would have to manually modify the filtering criteria.

Regards,
Alexander Popov
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
Tags
Grid
Asked by
Chris
Top achievements
Rank 1
Answers by
Alexander Popov
Telerik team
Share this question
or