The grid definition in asp.net mvc core chtml
index.cshtml
@(Html.Kendo().Grid<COSalesDto>()
.Name("grid")
.Columns(columns => { columns.Bound(p => p.CatalogNumber); columns.Bound(p => p.UsageCode).Width(150); })
Pageable() .Sortable() .Filterable()
.DataSource(dataSource => dataSource
.Ajax() .PageSize(20)
.Read(read => read.Action("ChangeOrder_Read", "Naco"))
).Deferred() )
Here is my data returned from ajax call
{ "Data": [ { "CatalogNumber": "Catalog 12345", "UsageCode": "Usage Code 1" }, { "CatalogNumber": "Catalog 8234758", "UsageCode": "Usage Code 2" } ], "Total": 0, "AggregateResults": null, "Errors": null }
all events are triggering on grid, but no data binding happening. Here is my entry in startup
Startup.cs
services.AddControllersWithViews(options => { options.Filters.Add(new AbpAutoValidateAntiforgeryTokenAttribute()); })
.AddJsonOptions(options => { options.JsonSerializerOptions.PropertyNameCaseInsensitive = true; options.JsonSerializerOptions.PropertyNamingPolicy = null; })
Any help greatly appreciated.
Thanks V