When binding a checkbox to an array property, it works only if array contains strings, but does not work with numbers:
Would be nice to remove this limitation to have a cleaner view model.
Here's a dojo representing it: http://dojo.telerik.com/uHaNO
Thanks.
<
label
><
input
type
=
"checkbox"
value
=
"1"
data-bind
=
"checked: colors"
/>Red</
label
>
var
viewModel = kendo.observable({
//colors: ["1", "2", "3"] //works
colors: [ 1, 2, 3 ] //does not work
});
Would be nice to remove this limitation to have a cleaner view model.
Here's a dojo representing it: http://dojo.telerik.com/uHaNO
Thanks.