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:
No, sorry, it's not! Now there is the same problem I mentioned in earlier posts, under the group header there is also a summary header, so the group summaries are shown twice! But I just want the single grand summaries header at the top and no additional headers under each group! Please compare sample screenshot with my skribble.
I have modified my sample application(DataGridfuncsNew.zip) in order to leave only the grand summary as you wish.
If you need any further assistance, feel free to ask.
I just had to change SummaryDisplayArea in your Sample from
="Top,InGroupByRecords"
to
="TopFixed,InGroupByRecords".
Now it looks good. Thank you!
But would it be possible to make this behaviour configurable by xaml properties without the hacks you did in the code behind and style setter, maybe as new feature for next xamdatagrid release?
After some research the functionality that you are looking for has been determined to be a new product idea. I have sent your product idea directly to our product management team. Our product team chooses new product ideas for development based on popular feedback from our customer base. Infragistics continues to monitor application development for all of our products, so as trends appear in requested ideas, we can plan accordingly.
We value your input, and our philosophy is to enhance our toolset based on customer feedback. If your idea is chosen for development, you will be notified at that time. Your reference number for this product idea is PI12070008.
If you would like to follow up on your product idea at a later point, you may contact Developer Support management via email. Please include the reference number of your product idea in the subject and body of your email message. You can reach Developer Support management through the following email address: dsmanager@infragistics.com
Thank you for your request.
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
Thank you for your feedback. Let me know, if you need any further assistance on this matter.
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. 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.
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.
I am just checking if my last reply was helpful for you.
If you require any further assistance please do not hesitate to ask.