I have following grid:
columns.Bound(c => c.BusinessProcess).Width(100);
columns.Bound(c => c.WorkName)).Width(150);
columns.Bound(c => c.CreationDate).Width(130);
columns.Bound(c => c.TimeLimitDate).Width(130);
columns.Bound(c => c.FinishDate).Width(130);
.Resizable(r => r.Columns(true))
.Pageable(pageable => pageable
.DataSource(dataSource => dataSource
.Read(read => read.Action("Read", "ReportTimeStat"))
.Model(model => model.Id(m => m.Id))
and I have just a simple button:
I would like to achieve this scenario:
When user clicks statistics button I would like to pass DataSourceRequest to WebApi Controller. Then I would like to read all data (change pageSize to total count of records) with current filters set on grid and count average value of data from one of the columns.
I have problem with passing DataSourceRequest to my method in controller. I tried sending
object, but it's a bit different from DataSourceRequest so it's not working.
How could I solve this problem?