My Kendo grid is not Ajax binding. My code mimics what is in your examples exactly, so I can't see the problem.
The grid:
I can see in Fiddler that the controller code is returning the correct JSON to the page:
The grid:
@(Html.Kendo().Grid<
LedgerEntryViewModel
>()
.Name("grdItems2")
.DataSource(datasource => datasource
.Ajax()
.Read(read => read.Action("GeneralLedgerEntries", "GL").Data("gridBindingData"))
.PageSize(10)
)
.Columns(col =>
{
col.Bound(c => c.AccountingEventName).Title("Accounting Event").HtmlAttributes(new {style = "white-space:nowrap;width:50%;"});
})
.Sortable()
.Pageable()
)
I can see in Fiddler that the controller code is returning the correct JSON to the page:
public ActionResult GetEntries(string accountType, int? categoryID, int? accountID, int? year, int? month,
[DataSourceRequest]DataSourceRequest request)
{
var list = new List<
LedgerEntryViewModel
>();
list = _gridHelpers.GetAccountEntriesWithRunningTotal(accountType, accountID.Value);
DataSourceResult result = list.ToDataSourceResult(request);
var json = Json(list, JsonRequestBehavior.AllowGet);
return json;
}