Author Topic: how to get data of summaryData  (Read 2109 times)

Anthony Kim

  • Pro Deluxe
  • Newbie
  • *
  • Posts: 6
    • View Profile
how to get data of summaryData
« 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



paramvir

  • Administrator
  • Hero Member
  • *****
  • Posts: 6318
    • View Profile
Re: how to get data of summaryData
« Reply #1 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;

Anthony Kim

  • Pro Deluxe
  • Newbie
  • *
  • Posts: 6
    • View Profile
Re: how to get data of summaryData
« Reply #2 on: May 04, 2020, 01:52:34 pm »
thanks your reply,
but,
resuts are 'undefined'

thanks