I am working with kendo ui with asp.net mvc 5. I have some condition where I have to show the kendo ui dropdownlist disabled, but when I submit the from (post) the model field which I have used to bind the drop-down list contains null instead of value.
Here is my code:
@(Html.Kendo().DropDownListFor(i => i.CallTypeId)
.Name("CallTypeId")
.HtmlAttributes(new { style = "width:100%" })
.DataTextField("MasterValueName")
.DataValueField("MasterValueId")
.Enable(false)
.DataSource(source =>
{
source.Read(read =>
{
read.Action("GetCallType", "Common", new { Area = "" });
});
})
.OptionLabel("Select Call Type")
)
Is there any other alternate to disable the kendo dropdownlist but remember I need the selected value. Thanks In advance.