Hi all,
just to report a mistake in the help page:
http://www.telerik.com/help/aspnet-ajax/client-side-binding.html -
in the middle of the page, you say:
To optimize even more the grid client-side data binding you can get both data and total items count in a single request. Example:
But actually the key "data" and "count" should be "Data" and "Count", otherwise they won't be recognized. The JSON output you may trace here (http://demos.telerik.com/TelerikCompressionModule/) proof this.
Thanks,
Enrico Foschi
just to report a mistake in the help page:
http://www.telerik.com/help/aspnet-ajax/client-side-binding.html -
in the middle of the page, you say:
To optimize even more the grid client-side data binding you can get both data and total items count in a single request. Example:
... |
[WebMethod(EnableSession = true)] |
public Dictionary<string, object> GetDataAndCount(int startRowIndex, int maximumRows, List<GridSortExpression> sortExpression, List<GridFilterExpression> filterExpression) |
{ |
Dictionary<string, object> data = new Dictionary<string, object>(); |
data.Add("data", GetData(startRowIndex, maximumRows, sortExpression, filterExpression)); |
data.Add("count", (int)Session["Count"]); |
return data; |
} |
... |
But actually the key "data" and "count" should be "Data" and "Count", otherwise they won't be recognized. The JSON output you may trace here (http://demos.telerik.com/TelerikCompressionModule/) proof this.
Thanks,
Enrico Foschi