Hi,
I have noticed that summary calculator does not get invoked and does not aggregate values when summary display area is set to None. I tried to customize the example 'Accessing Summary Results in Code' when I noticed after setting the display are to none the summary result in the top-right did not get updated.
Regards,Peter
PS: I don't want to show any specific row in the grid for summaries, but want to use the result of the calculation
Hello Peter,
You can create a style for the SummaryResultPresenter and set its Visibility property to collapsed if you want to keep the functionality and display no summaries.
<Style TargetType="{x:Type igDP:SummaryResultPresenter}">
<Setter Property="Visibility" Value="Collapsed"/>
</Style>
Let me know if you have any more questions on this.
Thanks for that. It works if you want to hide the text in the summary record row. I have set the summaryDisplayArea to BottomFixed. So the text was erased due to styling, but the row was there. I would like to get rid of the row completely.
I thought I can achive this by setting the SummaryDisplayArea to None, but in that case the aggregation stopped working.
I have found a workaround for the problem. If you set the following style in the grid's resources, aggregation won't stop and the you will be able to use the result of the calculator elsewhere despite of the hidden summary row.
<Style TargetType="{x:Type igDP:SummaryRecordPresenter}" > <Setter Property="Height" Value="0"/></Style>
But I still think, setting the SummaryDisplayArea to None should solve this problem. Peter
Hello RobFrail,
I have been reading through your reply and I assume that you wish to have a summary row that appears only inside the GroupByRecords. If my assumption is correct, I can suggest creating a style for the SummaryRecordPresenter with an EventSetter in it for the Loaded event. In the event handler for the Loaded event you can check whether the summary is a grand summary and if it is, you can set the Visibility of the SummaryRecordPResenter to Collapsed. I have created a sample application for you which demonstrates the approach I have mentioned.
Please let me know if this is what you are looking for or I have misunderstood you in any way.
Looking forward to hearing from you.
Sincerely,
Krasimir
Developer Support Engineer
Infragistics
www.infragistics.com/support
A related question: how do I make the Main Summary invisible, but have the individual Group Summaries visible?