Author Topic: Remote Summary  (Read 2374 times)

Mendrace

  • Pro Deluxe
  • Newbie
  • *
  • Posts: 12
    • View Profile
Remote Summary
« on: May 15, 2016, 05:53:54 pm »
Hi.

I need a summary Row with remote Data (JSON). Is that possible?

Thanks

paramvir

  • Administrator
  • Hero Member
  • *****
  • Posts: 6310
    • View Profile
Re: Remote Summary
« Reply #1 on: May 16, 2016, 11:46:16 am »
Yes. There are 2 kind of summaries, both can be used with remote and local data:

1. For manual summary with remote data, add summaryData option in the load event of the grid.

Code: [Select]
  load: function(){
    this.option( 'summaryData', summary_data_array );
  }

2. For auto summary, define grandSummary: true in groupModel and add aggregate types in column.summary.type
« Last Edit: May 16, 2016, 12:17:39 pm by paramquery »

Mendrace

  • Pro Deluxe
  • Newbie
  • *
  • Posts: 12
    • View Profile
Re: Remote Summary
« Reply #2 on: May 17, 2016, 02:04:52 am »
Thanks a lot.