[DisplayName("Template Type:")] public TemplateTypes TmplType { get; set; }where the TemplateTypes enum is Byte type (column in the database is tinyint). I tried using byte directly with the same result.
<div class="col-md-8"> @*@Html.DropDownList("templateTypes", (IEnumerable<SelectListItem>)ViewBag.TemplateTypes, new { @class = "form-control", ng_model = "currentTemplate.tmplType" })*@ <select class="form-control" name="templateTypes" id="templateTypes" ng-model="currentTemplate.tmplType" ng-options="t.value as t.text for t in templateTypes"></select> </div>The original commented code worked Ok. The new code has the values in drop down when I open it, but it doesn't correctly show on the form (e.g. drop down shows empty). If I change the value, it does correctly show in the grid after I save, but not in the form - the drop down is still blank.
public string Text { get; set; } // // Summary: // Gets or sets the value of the selected item. // // Returns: // The value. public string Value { get; set; }Thanks in advance.