Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
210
GridDataSourceActionAttribute throwing error OnActionExecuted
posted

Using the latest version of IgniteUi.

I'm using iGrids saveChanges ajax functionality to httppost transactions to an mvc controller. 

As per documentation and examples the return type of the controller is "ActionResult" however the return is a Json response.

On its way out when the code reaches the OnActionExecuted I get an error inside the GridDataSourceActionAttribute class on line 146 - Object reference not set to an instance of an object.

Here are some snippets of code.

My success response being returned from the controller with the Action Attribute.

JsonResult result = new JsonResult();
Dictionary response = new Dictionary();
response.Add("Success", true);
result.Data = response;
return result;

The setup of my iGrid

@(Html.Infragistics()
.Grid()
.ID("MoviesGrid")
.PrimaryKey("ID")
.AutoCommit(true)
.RenderCheckboxes(false)
.Features(features =>
{
features.Sorting().Type(OpType.Local).Mode(SortingMode.Single);
features.Updating();
features.Filtering();
})
.DataSource(Model.Movies)
.DataSourceUrl(Url.Action("GetMoviesDataAction", "Movies"))
.UpdateUrl(Url.Action("UpdateMovieRecords"))
.AggregateTransactions(true)
.DataBind()
.Render())

Parents Reply Children
No Data