The template below works but it seems kind of goofy. Is there a better way to set the "Checked" value conditionally?
I can do it easily with a plain checkbox but I prefer to use the Kendo one for the styling.
<
script
type
=
"text/x-kendo-tmpl"
id
=
"connectorTemplate"
>
<
div
class
=
"tabOption"
>
# if (Selected) { #
@(Html.Kendo().CheckBox()
.Name("#:Id#")
.Checked(true)
)
# } else { #
@(Html.Kendo().CheckBox()
.Name("#:Id#")
.Checked(false)
)
# } #
<
span
>#:Name# </
span
>
</
div
>
</
script
>