I am trying to get a ComboBoxFor to work inside a Kendo Modal Window. Thing is, the value type is always null. THis is what I am doing in side a modal window:
<
div
class
=
"demo-section k-content"
>
<
h4
>Find a product</
h4
>
@(Html.Kendo().ComboBox()
.Name("products")
.Placeholder("Select product")
.DataTextField("ProductName")
.DataValueField("ProductID")
.HtmlAttributes(new { style = "width:100%;" })
.Filter("contains")
.AutoBind(false)
.MinLength(3)
.DataSource(source => {
source.Read(read =>
{
read.Action("ServerFiltering_GetProducts", "ComboBox").Data("onAdditionalData");
})
.ServerFiltering(true);
})
)
<
div
class
=
"demo-hint"
>Hint: type at least three characters. For example "che".</
div
>
</
div
>