Pregunta

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

¿Fue útil?

Solución

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

Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top