This question is locked. New answers and comments are not allowed.
I have a Telerik dropdown on an editable Telerik grid. When the user changes the drop down, the grid displays the proper text. If the user then clicks on another row, it goes back to the original text (The visible portion of the combo box). When you click back to the original row that you changed, your new value is there as expected. It only shows the wrong value when the user is clicked on a different row.
Here is my view:
The first column is the one that has the drop down.
Here is the editor template for that column
Here is my view:
<% Html.Telerik() .Grid(Model.TJD) .Name("TJD") .Selectable() .Footer(false) .DataKeys(dataKeys => { dataKeys.Add(c => c.jid); dataKeys.Add(c => c.tid); }) .Sortable(settings => settings.Enabled(false)) .ClientEvents(events => events.OnRowSelected("onTJDSelected").OnEdit("onTJDEdit")) .ClientEvents(events => events.OnSave("onTJDSelected")) .Filterable(settings => settings.Enabled(false)) .ToolBar(commands => { commands.Insert().HtmlAttributes(new { id = "insertTJD" }); commands.SubmitChanges().HtmlAttributes(new { id = "saveTJD" }); }) .Columns(columns => { columns.Bound(o => o.TName); columns.Bound(o => o.jid).Hidden(); columns.Bound(o => o.tid).Hidden(); }) .DataBinding(dataBinding => dataBinding.Ajax().Select("_AjaxGetTJDSForJid", "TJD Controller").Update("_AjaxUpdTJDSForJid", "TJDController")) .Editable(editing => editing.Mode(GridEditMode.InCell)) .Editable(e => e.DefaultDataItem(Model.defaultTJD)) .Render(); %>The first column is the one that has the drop down.
Here is the editor template for that column
<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl" %><%= Html.Telerik().DropDownList() .Name("tid") .BindTo(new SelectList((IEnumerable)ViewData["tList"], "tid", "tName"))%>