Hellow,
When I use this following code I get error "Invalid template" by "kendo.web.js"
I tried it first by script but the script from the kendodropdownlist closed the main script of the tamplate and it forced me to put it in a div. Both are wrong. What can I do for doing this simple example?
the code by script:
<script id="employeesTemplate" type="text/kendo-tmpl">
@(Html.Kendo().DropDownList()
.Name("AddressSource")
.BindTo(new List<string>() {
"רשמית",
"מדווחת",
"למשלוח דואר"
})
)
</script>
When I use this following code I get error "Invalid template" by "kendo.web.js"
I tried it first by script but the script from the kendodropdownlist closed the main script of the tamplate and it forced me to put it in a div. Both are wrong. What can I do for doing this simple example?
the code by script:
<script id="employeesTemplate" type="text/kendo-tmpl">
@(Html.Kendo().DropDownList()
.Name("AddressSource")
.BindTo(new List<string>() {
"רשמית",
"מדווחת",
"למשלוח דואר"
})
)
</script>
the code by div:
<
div id="addressEditTemplate" style="display:none;">
@(Html.Kendo().DropDownList()
.Name("AddressSource")
.BindTo(new List<string>() {
"רשמית",
"מדווחת",
"למשלוח דואר"
})
)
</div>
Thanks in advance.