Author Topic: Using summaryData with fetching data remotely?  (Read 1862 times)

tcf

  • Pro Deluxe
  • Newbie
  • *
  • Posts: 13
    • View Profile
Using summaryData with fetching data remotely?
« on: December 20, 2016, 04:03:44 am »
Is it possible to use summaryData but fetching data remotely?

I've tried using this as an example, but it fails to work when fetching data remotely:
http://paramquery.com/pro/demos/summary

Thanks



paramvir

  • Administrator
  • Hero Member
  • *****
  • Posts: 6260
    • View Profile
Re: Using summaryData with fetching data remotely?
« Reply #1 on: December 20, 2016, 08:58:23 am »
In case of remote data, summaryData option should be set in load event.

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