Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
40
igGrid remote summary
posted

Hello

We are using an igGrid with remote features (paging, sorting, filtering).

How can I use the remote summary feature?

I enabled the Summary Feature like this:

GridSummaries summaries = new GridSummaries();
summaries.Type = OpType.Remote;
gridModel.Features.Add(summaries)

Now, the Request.Query in the Controller now contains summary elements which I could use in server functions
to provide the requested values. (e.g. [Summaries(Date:date), count,min,max])

I use a JsonResponse to provide the grid with the current pages data and the total of records.

var response = new WrappedGridResponse(data, null);
response.TotalRecordsCount = totalRecordsCount.Value;

How can I add summary results to the JsonResponse so the grid knows about the summary results?

Parents Reply Children
No Data