Hi,
I am writing a Kendo SPA application that uses MVVM. I have a Kendo Grid and want to take advantage of the Filter Row capabilities. I want to set up a couple of the column filters to be dropdownlists that are databound to data from a function in the ViewModel. I have tried all different combinations and haven't been able to get it to work. I can create a template function:
Please can you help me achieve this?
The kendo version I am using is 2014.3.1119.
Thanks
I am writing a Kendo SPA application that uses MVVM. I have a Kendo Grid and want to take advantage of the Filter Row capabilities. I want to set up a couple of the column filters to be dropdownlists that are databound to data from a function in the ViewModel. I have tried all different combinations and haven't been able to get it to work. I can create a template function:
template: function (element) { return element.element.kendoDropDownList({ dataSource: ["EquipmentAcquisition", "EquipmentLoan"] }); }with the name of the function in the viewmodel that returns an array it doesn't work. I tried
This works only if I list the values of the datasource explicitly as above. If I replace ["EquipmentAcquisition", "EquipmentLoan"]
template: kendo.template($("#Script1").html())
<script id="Script1" type="text/x-kendo-template"> <div data-role="dropdownlist" data-bind="source: requestTypesSource"></div> </script>but this doesn't work either.
Please can you help me achieve this?
The kendo version I am using is 2014.3.1119.
Thanks