<input data-bind="kendoDropDownList: { data:$root.brands,
                                       value: BrandID,
                                       dataTextField: 'Name',
                                       dataValueField: 'BrandID'},
                 event: { change: $root.saveItem }" />

Does anyone know why wouldn't the change event fire if this is inside a kendo window??

I am using knockout-kendo.js.

有帮助吗?

解决方案

For Change Event Firing

<input data-bind="kendoDropDownList:{ data            :$root.brands,
                                      value           :BrandID,
                                      dataTextField   :'Name',
                                      dataValueField  :'BrandID',
                                      change          :$root.saveItem}"/>

Here is sample of change event firing

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top