This question is locked. New answers and comments are not allowed.
I have an Editor template with Telrik.ComboBox. The comboBox is populated correctly and I can select from the list but when I click OK, even there is selected item, it keeps on giving me the validation error that my ITEM field is required.
MODEL
VIEW
ClientItemLookUp.ascx
Validation
MODEL
[ScaffoldColumn(false)]public decimal ItemID { get; set; }[DisplayName("Item")][UIHint("ClientItemLookUp"), Required]public string ItemName { get; set; }VIEW
<%= Html.Telerik().Grid<PrDetailEntity>() .Name("itemList") .ToolBar(commands => commands.Insert().ButtonType(GridButtonType.Image)) .DataKeys(keys => { keys.Add(c => c.ItemID); }) .DataBinding(dataBinding => { dataBinding.Ajax() .Select("_SelectAjaxEditing", "Prentry") .Insert("_InsertAjaxEditing", "Prentry") .Update("_SaveAjaxEditing", "Prentry") .Delete("_DeleteAjaxEditing", "Prentry"); }) .Columns(columns => { columns.Bound(o => o.ItemID).Width(50).Hidden(true); columns.Bound(o => o.ItemName); columns.Bound(o => o.ItemDescription); columns.Bound(o => o.Quantity).Width(100); columns.Bound(o => o.Uom).Width(100); columns.Bound(o => o.QuantityCost).Width(100); columns.Bound(o => o.ItemCost).Width(100); columns.Command(commands => { commands.Edit().ButtonType(GridButtonType.Image); commands.Delete().ButtonType(GridButtonType.Image); }).Width(180).Title("Commands"); }) .Editable( editing => editing.Mode(GridEditMode.PopUp) .TemplateName("test") ) .Footer(false) %>ClientItemLookUp.ascx
<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<dynamic>" %><%= Html.Telerik().ComboBox() .Name("ItemList") .AutoFill(false) .HighlightFirstMatch(true) .HtmlAttributes(new { style = "width: 300px; " }) .DataBinding(binding => binding.Ajax() .Select("_GetVendorByName", "Entry") .Delay(400) .Cache(false) ) .Filterable(filtering => { filtering.FilterMode(AutoCompleteFilterMode.Contains); filtering.MinimumChars(1); }) %>Validation
The Item field is required