EasyUI Forum
October 16, 2025, 01:52:56 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: How to show footer row in pivotgrid?  (Read 8332 times)
waltex
Newbie
*
Posts: 3


View Profile Email
« on: December 15, 2015, 08:28:18 AM »

hi,
i have a problem with plugin pivotgrid, not show the footer row.
I add this option:
Code:
showFooter: true

this my code:
Code:
function load_dg2() {
        $('#dg2').pivotgrid({
            title: 'Report Costo Promo ',
            toolbar: [{
                    //text: 'Layout',
                    handler: function () {
                        $('#dg2').pivotgrid('layout');
                    }
                }, {iconCls: 'icon-reload',
                    text: 'Elabora',
                    handler: function () {
                        load_dg2();
                    }}, {iconCls: 'icon-excel1',
                    text: 'Esporta',
                    handler: function () {
                        JSONToCSVConvertor2($('#dg2').pivotgrid('getRoots'), 'totali', 'label');
                    }}, {iconCls: 'icon-database_edit',
                    text: 'parametri pivot',
                    handler: function () {
                        $('#dg2').pivotgrid('layout')
                    }}],
            url: 'api/pivot/costo_promo',
            fit: true,
            showFooter: true,
            //height: '%75%',
            pivot: {
                rows: ['DESC_ECR1', 'DESC_ECR2', 'DESC_ECR3'],
                columns: ['VOLANTINO'],
                values: [
                    {field: 'MARGINE_NETTE_STIMATE', op: 'sum', width: 200},
                    {field: 'VALORE_VENDITE_STIMATE_S', op: 'sum', width: 200},
                ]
            },
            onLoadSuccess: function (row, data) {
                for (i = 0; i < $('#dg2').treegrid('getData').length; i++) {
                    $('#dg2').treegrid('collapseAll', i);
                }

            },
        });
    }
Logged
stworthy
Administrator
Hero Member
*****
Posts: 3581


View Profile Email
« Reply #1 on: December 15, 2015, 09:08:10 AM »

You need to call 'reloadFooter' method to display the footer rows.
Code:
$('#dg2').pivotgrid('reloadFooter', [
 {...}
]);
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!