Hi,
I have this code...
protected void OnRead(GridReadEventArgs args)
{
DataTable oDataTable = TiMain.DataSource.ToTable();
DataSourceResult oDataSourceResult = oDataTable.ToDataSourceResult(args.Request);
args.Data = (oDataSourceResult.Data as IEnumerable<Dictionary<string, object>>)
.Select(oRow => oRow.ToDictionary(
oCell => oCell.Key,
oCell => (oCell.Value == DBNull.Value ? null : oCell.Value)
))
.ToList();
args.Total = oDataTable.Rows.Count;
}
According to my understanding of the documentation ToDataSourceResult should return only with rows that fit the page. But it always return all - sever hundred - of rows regardless of the current page...
Have I missed something?