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
675
Ultra Calc Manager errors
posted

I have seen a number of posts on this site complaining of the UltraCalcManager throwing exceptions when its information is changed while calculations are being performed.

I have a case where the Ultra Grid is configured to have 50 columns with summaries (weighted averages) to be calculated by the Calc Manager.  In this particular case, I can watch the calculations and it can take up to 2 minutes for all of the summaries to appear.

The exception will occur if I perform an action that causes the grid's datasource to refresh before the calculations are complete.  I assume that switching to Synchronous calculations would prevent the exception but I don't want to be locked up until the calcs are done.

I can get rid of the exception by calling ultraCalcManager.SuspendCalc, but then I get another error when I later call ResumeCalc.

What I'm looking for is some method for aborting the calculations instead of just suspending. 

Clearing the summary collection on the grid before calling ResumeCalc does not do the trick.

Is there some method or technique for cancelling the current calculation process and later restarting with new conditions?