I have some issue related to the template for combobox.
My combobox has template defined:
<script id="Items_template" type="text/x-kendo-template">
${data.NameLang}(${data.Code})
</script>
This is the definition of combobox:
@(Html.Kendo().ComboBox()
.Name("Item_Description")
.DataTextField("NameLang")
.DataValueField("NameLang")
.Filter(FilterType.Contains)
.DataSource(action => action.Read(read => read.Action("GetItemsForPAByName", "StockCount")))
.Value(Model.Item_Description)
.HtmlAttributes(new {style="width:240px"})
.TemplateId("Items_template")
)
As a result on the list I get undefined(undefined).
Same definition and template not located on the custom grid editor is working fine.
Is this some issue with combobox styling ?
Is there any workaround ?
My combobox has template defined:
<script id="Items_template" type="text/x-kendo-template">
${data.NameLang}(${data.Code})
</script>
This is the definition of combobox:
@(Html.Kendo().ComboBox()
.Name("Item_Description")
.DataTextField("NameLang")
.DataValueField("NameLang")
.Filter(FilterType.Contains)
.DataSource(action => action.Read(read => read.Action("GetItemsForPAByName", "StockCount")))
.Value(Model.Item_Description)
.HtmlAttributes(new {style="width:240px"})
.TemplateId("Items_template")
)
As a result on the list I get undefined(undefined).
Same definition and template not located on the custom grid editor is working fine.
Is this some issue with combobox styling ?
Is there any workaround ?