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
1230
Custom row summary calculator
posted

I have created a custom row summary calculator but do not know how to attach it to a field in the xamDataGrid.  I build it and register it in code and then reference it in the xaml as follows:

<igDP:SummaryDefinition

StringFormat=" {0:#,##0.00;(#,##0.00);0.0}"

Key="WorkUnitLaborMult"

SourceFieldName="WorkUnitLaborMult"

Calculator="ProjectEffectiveMult" Position="UseSummaryPositionField"/>

The summary comes up blank when the grid is displayed.  Using the debugger I can tell it is not running through the custom calculation class code.

 

Thank you for your help.

Parents
No Data
Reply
  • 1230
    posted

    So I figured out that once I register the SummaryCalculator by running through the code that registers, it does not display a value during this first processing.  If I exit back to the Project Selection and select the project again, the summary calculation is performed because I did not UnRegister the calculator.

    I thought I would prgrammatically set the SummaryCalculator, after registering it, using SummaryCalculator.RegisteredCalculators, so it would be available immediately.  However I could not find a way to get a reference to any specific Registered Summary Calculator no less the summary calculator I registered.

     The example in the documentation makes it available to be selected but I can't let the users choose the calculations for specific fields I want to set them in xaml or using code.  I am going to have to do more of these so some help would be nice.

    Thank You. 

     

Children