ParamQuery grid support forum

General Category => Help for ParamQuery Grid (free version) => Topic started by: Anthony Kim on May 03, 2020, 08:59:59 pm

Title: how to get data of summaryData
Post by: Anthony Kim on May 03, 2020, 08:59:59 pm
hi

how to get data of summaryData?

summaryData: [{
            //type: 'Total',
            summaryRow: true,
            pq_fn: {
                stock: 'sum(F:F)',
                quantity: 'sum(G:G)'
            }
        }],

I want to get data of stock and quantity from grid.

thanks


Title: Re: how to get data of summaryData
Post by: paramvir on May 04, 2020, 09:21:26 am
summaryData can be get as

Code: [Select]
var data = grid.option( 'summaryData' ),
   stock = data.stock, quantity = data.quantity;
Title: Re: how to get data of summaryData
Post by: Anthony Kim on May 04, 2020, 01:52:34 pm
thanks your reply,
but,
resuts are 'undefined'

thanks