I've got several dropdown lists in an editor template, for use with a grids pop-up edit window.
They are displayed fine, and if a value other than the default one is selected, data is returned to the controller.
However, if the user leaves the default values as presented, null values are returned to the controller.
The definition is:
Do I need to set anything else so the default value is posted back?
They are displayed fine, and if a value other than the default one is selected, data is returned to the controller.
However, if the user leaves the default values as presented, null values are returned to the controller.
The definition is:
@(Html.Kendo().DropDownListFor(c=>c.Site)
.Name("Site")
.DataTextField("SiteDescription")
.DataValueField("Site")
.DataSource(source=>source
.Read(read=>read.Action("GetSiteLookUpList","ManualData"))))
@Html.ValidationMessageFor(c => c.Site )