knockout.jskendo-uiknockout-kendo

Use knockout-kendo binding with MultiSelectBox plugin


I try to use MultiSelectBox KendoUI plugin shown in following fiddle with knockout binding, but I can't make it work

KendoUI plugin for drop-down with checkboxes

My multiselect is defined as below

<input 
    data-role="multiselectbox"
    data-bind= "kendoMultiSelectBox: {
                            dataTextField: 'Desc',
                            dataValueField: 'ID',
                            data: ProjectTypes,
                            value: pID
                        },
                        event: { change: changeProjectType }" /> 

Any suggestion on how to make it work?

Thanks


Solution

  • I managed to make it work as follows:

    <input data-bind= "kendoMultiSelect: {
                            dataTextField: 'Desc',
                            dataValueField: 'ID',
                            data: ProjectTypes,
                            value: pID
                       },
                       event: { 
                            change: changeProjectType 
                       }" /> 
    

    The key element was kendoMultiSelect binding