Bind checked with template

1 Answer 75 Views
Checkbox MVVM Templates
Marco
Top achievements
Rank 2
Iron
Iron
Marco asked on 25 Jul 2023, 09:13 AM | edited on 25 Jul 2023, 09:18 AM

This example not works as expected:

https://dojo.telerik.com/ESAQEsip/2

It should only select: Red and Green.

Isn't it?

It's the same if I write the value of the input field by hand: value="Red"

Docs:

https://docs.telerik.com/kendo-ui/framework/mvvm/bindings/checked#binding-lists-of-checkboxes-to-arrays

Many thanks

1 Answer, 1 is accepted

Sort by
0
Accepted
Paolo
Top achievements
Rank 2
Iron
answered on 25 Jul 2023, 10:07 AM

Your source array has to have objects instead of simple strings.

Check out the updated version: https://dojo.telerik.com/ESAQEsip/3

Tags
Checkbox MVVM Templates
Asked by
Marco
Top achievements
Rank 2
Iron
Iron
Answers by
Paolo
Top achievements
Rank 2
Iron
Share this question
or