Trying What: Get a grid with BOTH update/delete AND select working
Method: MVC AJAX style grid
Problem 1: After an insert, delete, or edit, all of the select buttons stop working (they all just point to the current URL and clicking them does not actually do anything. It was confirmed that before the editing, they work fine. This has been failing for both inline editing and the popup editing. Note that for some reason mouse clicking the Update button doesn't work BUT pressing Enter on an edit box works and doesn't break the Select afterwards.
Problem 2: The method specified in databinding.Ajax.Select is NOT used for the select buttons. I believe this can be a little confusing and it should be renamed to databinding.Ajax.Load to not confuse it with the select buttons. Won't this mean that for several grids on the same page, all the grid's will have select buttons going to the same controller method?
View:
<%= Html.Telerik().Grid<HiringSite.Backend.Quiz>(Model)
.Name("vSomething") .Sortable() .DataKeys(dataKeys => dataKeys.Add(a => a.Id)) .ToolBar(commands => commands.Insert()) .DataBinding(dataBinding => dataBinding.Ajax() .Select("GridSelect", "Admin") .Insert("GridInsert", "Admin") .Update("GridUpdate", "Admin") .Delete("GridDelete", "Admin") ) .RowAction(row => row.Selected = ((Guid?)row.DataItem.Id).Equals(ViewData["id"])) .Columns(columns => { columns.Command(commands => { commands.Edit(); commands.Delete(); commands.Select(); }); columns.Bound(a => a.Name).Width(150); }) %>