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
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.
Hi Stefan, Thank you for the workaround.
We have shipped out a new service release where your issue is resolved. I'd be glad to find out if you had tested it out and if it had met your requirements.
You can download the Service Releases by logging to our web site and going to My IG \My Keys and Downloads.
Thank you for using Infragistics Components.