0

How to show Grand Total with million rows from a REST?

Documentation has the example when all data is loading once with option loadonce: true but that is a very small number of rows. How can I attain the same with partial data loading?

Serhii Popov
  • 3,326
  • 2
  • 25
  • 36

1 Answers1

0

You can calculate the total of the column field on the server and transport it using userdata again with options userDataOnFooter

$("#grid").jqGrid({
    ...
    footer : true,
    userDataOnFooter: true,
...
});

See the docs for these options and the demo here

Tony Tomov
  • 3,122
  • 1
  • 11
  • 18