I'm having a few issues using custom summaries with nested groups. See details below and provide assistance if possible, any help is appreciated. You will find a stackblitz reproduction of the issue at the bottom.
Scenario: Show only the sum of child level items that are nested in groups.
Reproduction of Issue:
After investigating this further, I determined that the summaryCalculationMode is set to childLevelsOnly, as it should be. However, the grid is grouped by two columns and there are more children and the last summary line is there by default and cannot be removed.
Regarding the custom summaries, the following line:
private sumSummary: SumSummary;
Should look like this:
private sumSummary = SumSummary;
When is like defined that way, only the sum is displayed and the following error: classRef is not a constructor, is not displayed.
Please let me know if you need more information.
Regards, Monika Kirkova, Infragistics
Setting it equal to SumSummary allowed the custom summary to work. Thanks for catching that!
It's unfortunate that there is no way to remove the summary of the grouping above the child level though.
It would be great if either the childLevelsOnly setting would take nested groups into account and only show the summary on the bottom grouping of the tree or if a separate value that is meant to be used when using nested grouping would only show summaries for the bottom level grouping of the nest (something like bottomNestedChildOnly).
Anyway, thanks again for the help!
Thank you for taking time to convey your feedback. I will forward it to the team responsible for the summary feature.
I am glad that you managed to resolve your issue.
Thank you for using Infragistics components!