Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
3160
SummaryCalculator BeginCacluation and EndCalculation are called twice
posted

To observe this behavior, download the CustomSummaryCalculatorOnLoad.zip here:
http://community.infragistics.com/forums/p/60510/308947.aspx#308947

Place a breakpoint in BeginCalculation and EndCalculation and run the example.

Per the documentation found here:

http://help.infragistics.com/Help/NetAdvantage/WPF/2011.1/CLR4.0/html/InfragisticsWPF4.DataPresenter.v11.1~Infragistics.Windows.DataPresenter.SummaryCalculator~BeginCalculation.html

>>>Typically you initialize any member variables in this method.

I'm not sure why you would want to initalize variables twice (???). 

Question:  I only want to calculate totals once.  I do not calculate totals based on information in the grid.  What method(s) should I use to calculate totals?

Thanks

Parents
  • 138253
    Verified Answer
    Offline posted

    Hello Sam,

    Thank you for your post. I have been looking through it and the links you have provided and I can say that the first call is for the record collection that contains the actual data records and the other is for a temporary record collection that we create for the purposes of measurement. Summary calculator begin/end calls associated with this temporary template collection will not actually have any data values to aggregate so there won’t be any performance issues. Although there is no way of preventing this from happening, I attached a sample project, where the code in these methods is not executed the first time they are called. Please let me know if you need further clarification on this matter.

    Looking forward for your reply.

    CustomSummaryCalculator.zip
Reply Children
No Data