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
160
igGrid Summaries by total records with paging
posted

I would like to add Summaries of "total records", which should contain sum of every pages, to the top of each page and not Summaries per page.

$("#grid").igGrid({
columns: [
{ headerText: "Account ID", key: "account_id", dataType: "string", width: "6%" },
{ headerText: "Total Spent", key: "total_spent", dataType: "number", format: "number", width: "6%" }
],
dataSource: "report.php?performance",
enableHoverStyles: false,
responseDataKey: "data",
requestType: "post",
features: [
{
name: "Paging",
type: "remote",
recordCountKey: "total_records_count",
pageSizeUrlKey : "page_size",
pageIndexUrlKey: "page_index",
pageSizeList: [15, 25, 50]
},

Parents
  • 15320
    Offline posted

    Hello Sebrina,

    Please note that Summaries feature along with Paging works the way you're describing. It displays the whole information per column at the bottom of every grid page. For your reference you may take a look at the following sample:  http://jsfiddle.net/tL46hpym/ If you have any questions, feel free to contact me.

    Regards,

    Tsanna

Reply Children