Here is the situation.
I'm working in a custom editor template for the kendo scheduler.
I have a model with a string field called "itemType".
The form fields associated with item type are checkboxes.
Issue: I want to evaluate whether or not the checkbox should be checked when the editor window is opened. In order to do this, the most logical thing (in my mind) would be to have some kind of expression to evaluate this. I tried the following template and I get "Uncaught ReferenceError: Invalid left-hand side in assignment".
Here is the template:
1.
#for (var i=0; i<
itemTypeList.length
; i++){#
2.
<input
name
=
"itemType"
type
=
"checkbox"
value
=
"#= itemTypeList[i].Code #"
data-type
=
"text"
data-bind
=
"checked: itemType=='#= itemTypeList[i].Code #'"
> #= itemTypeList[i].Description #
3.
# } #