This question is locked. New answers and comments are not allowed.
I just upgraded from 2011.1.414.340 to 2011.2.712.340 and have run into a couple of issues with my grids that use ajax binding.
I have the following grid:
If I return a View from my action, nothing is bound. For example, if I implement _Select as follows, nothing is bound to the grid:
If I change the action to return Json instead of View, it works fine:
Also, my client side validation is not working on my grid view popup editors.
Any ideas of what I might have broke during the upgrade?
Update: I uninstalled Ninject.MVC3 and I no longer have the problems. No idea why and no time to look.
I have the following grid:
@(Html.Telerik().Grid<UnitVM>() .Name("unit_list") .DataKeys(dataKeys => dataKeys.Add("UnitId")) .ToolBar(toolBar => toolBar.Insert()) .Columns(columns => { columns.Bound(m => m.UnitId).Width("5em"); columns.Bound(m => m.Name).Width("20em"); columns.Bound(m => m.Description); columns.Command(command => { command.Edit(); }).Width("8em"); }) .Editable(editable => editable.TemplateName("Edit").Mode(GridEditMode.PopUp)) .DataBinding(dataBinding => dataBinding.Ajax() .Select("_Select", "Unit", new { appId = @Model.SelectedAppId }) .Update("_Update", "Unit", new { appId = @Model.SelectedAppId }) .Insert("_Insert", "Unit", new { appId = @Model.SelectedAppId })) .Pageable() .Sortable() .Groupable() .Filterable())If I return a View from my action, nothing is bound. For example, if I implement _Select as follows, nothing is bound to the grid:
[GridAction]public ActionResult _Select(int appId) { return View(new GridModel<UnitVM> { Data = GetUnits(appId) }); }If I change the action to return Json instead of View, it works fine:
[GridAction]public ActionResult _Select(int appId) { return Json(new GridModel<UnitVM> { Data = GetUnits(appId) }); }Also, my client side validation is not working on my grid view popup editors.
Any ideas of what I might have broke during the upgrade?
Update: I uninstalled Ninject.MVC3 and I no longer have the problems. No idea why and no time to look.