This question is locked. New answers and comments are not allowed.
I'm having multiple issues with my Grid, however, each issue can be resolved by turning off a different feature that I need. I would really like them to all work together.
Here is my ideal Grid code
Now for the requirements and problems. This Grid has to bind via Ajax and it has to be Grouped. Therefore I have turned on Client Operation Mode and Grouping. If I try to do Grouping without Client Operation Mode, I get no results back.
With the Grid in this setup, anytime I attempt to Delete or Update an item in the Grid, I receive an "With the Grid in this setup, anytime I attempt to Delete or Update an item in the Grid, I receive an "Object reference not set to an instance of an object" error and my data will not update.
If I turn off Grouping, then I don't receive the "Object reference not set to an instance of an object", however, my Grid still doesn't update when I Add/Update/Delete an item.
If I then turn off Client Operation Mode, the grid will update when I Add/Update/Delete, but I lose the ability to Group.
Do you have any possible solutions to allow me to Group and Ajax bound grid without setting the grid to Client Operation Mode?
Here is my ideal Grid code
@(Html.Telerik().Grid<ReportConfigHelper>() //width 934, 917 with scrollbar.Name("optionGrid").DataKeys(keys => keys.Add(o => o.Id)).DataBinding(dataBinding => dataBinding.Ajax() .OperationMode(GridOperationMode.Client) .Select("_optionSelect", "Setup", new { ReportId = Model.Report.Id }) .Update("_optionUpdate", "Setup", new { ReportId = Model.Report.Id }) .Delete("_optionDelete", "Setup", new { ReportId = Model.Report.Id })).Columns(columns =>{ columns.Bound(o => o.OptionValueValue) .HtmlAttributes(new { @class = "aligncenter" }) .HeaderTemplate( @<text>Value</text> ) .Width(75) .ReadOnly(true) .HeaderHtmlAttributes(new { style = "text-align:center" }); columns.Bound(o => o.OptionValueName) .ReadOnly(true); columns.Bound(o => o.OptionSort) .Width(50); columns.Command(commands => { commands.Edit().ButtonType(GridButtonType.Image); commands.Delete().ButtonType(GridButtonType.Image); }) .Width(76);}).Groupable(grouping => grouping.Groups(groups => groups.Add(o => o.OptionName)).Visible(false)).Pageable(paging => paging.Style(GridPagerStyles.Status).PageSize(999)).Scrollable(scrolling => scrolling.Height("550px")).Selectable().ClientEvents(events => { events.OnDataBinding("bindToken"); events.OnSave("saveToken"); events.OnDelete("saveToken"); }))With the Grid in this setup, anytime I attempt to Delete or Update an item in the Grid, I receive an "With the Grid in this setup, anytime I attempt to Delete or Update an item in the Grid, I receive an "Object reference not set to an instance of an object" error and my data will not update.
If I turn off Grouping, then I don't receive the "Object reference not set to an instance of an object", however, my Grid still doesn't update when I Add/Update/Delete an item.
If I then turn off Client Operation Mode, the grid will update when I Add/Update/Delete, but I lose the ability to Group.
Do you have any possible solutions to allow me to Group and Ajax bound grid without setting the grid to Client Operation Mode?