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

New kendo grid row filter mode: drop down list with object collection as data source does not work

1 Answer 329 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Markus
Top achievements
Rank 1
Markus asked on 05 Aug 2014, 08:46 AM
Hi,

I'm currently evaluating the new kendo grid Row filter mode.

In an example linked bellow I try to use a drop down list filter but it fails to work in case the drop down list has an objects collection as a data source.

See: http://jsbin.com/guyot/1/edit 

In case the data is just an array of strings it works.

Could you please assist? Am I defining something wrong or is it a bug?

Thanks

1 Answer, 1 is accepted

Sort by
0
Petur Subev
Telerik team
answered on 07 Aug 2014, 07:50 AM
Hello Markus,

The value of the dropdownlist is not specified to be the dataValueField- and because of this the value becomes the whole item from the array. You need to enable the valuePrimitive option of the DropDownList to make it work.

http://demos.telerik.com/kendo-ui/dropdownlist/mvvm

e.g.

http://jsbin.com/zavime/1/edit

Kind Regards,
Petur Subev
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
Markus
Top achievements
Rank 1
Answers by
Petur Subev
Telerik team
Share this question
or