Hello,
I want the group summaries within the group header so I set
GroupBySummaryDisplayMode
="SummaryCellsAlwaysBelowDescription"
of the FieldLayoutSettings. And beside that I want the grand summary header at the top of the grid and fixed instead of unfixed at the footer. So I tryed to also set
SummaryDisplayArea
="TopFixed"
of FieldSettings. But now the group summaries are no longer within the group headers so I can't see the group summaries when group is collapsed. How can I achieve the look and feel I need?
I have been looking into your post and I can suggest you set the ‘SummaryDisplayArea’ to "InGroupByRecords, TopFixed". This way you can see the group summaries even when the groups are collapsed.
If you need any further assistance on this matter, feel free to ask.
Thanks for your quick response. With your suggested solution the group summaries are now shown twice. One in the groupheader but also as seperate header under the group header. I just want them in the group header because now it takes to much space as you can see in the screenshot:
I now tried your workaround in our real application, but the problem is, that the data in the grid are loaded deferred by user interaction. So when the datagrid loaded event takes place there is no data and therefor no record presenter to set its heigth to a size of 25. I tried different other events and found out that the QuerySummaryResult-Event works for me. But this event will be fired really often so this could result in performance issues later. So do you have an alternative event I could use which I had maybe overseen?
Best regards
I am just checking if my last reply was helpful for you.
If you require any further assistance please do not hesitate to ask.
thanks for your new sample. The DataContextChanged event seems to work. But now I have another problem: If RecordContainerGenerationMode="PreLoad"is set, the grand summaries header disapears after uncollapsing one of the group headers.
Thank you for your feedback. All that I have suggested you by now is a custom implementation on how to achieve the desired functionality. It seems that my approach works as expected when ‘RecordContainerGenerationMode’ property is set to ‘Recycle’ which is its default value. Setting it to other value you change the virtualization of the XamDataGrid and it seems that it is the reason for the disappearance of the summary header. I can suggest you leave ‘RecordContainerGenerationMode’ to ‘Recycle’.
If you have any other questions on this matter, feel free to ask.
For now I can live with this workaround but there are maybe situations in future where I need to have set 'RecordContainerGenerationMode' to 'PreLoad'.
Thanks for your support!
Thank you for your feedback. Let me know, if you need any further assistance on this matter.