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 question and I can suggest you set the ‘DataContext’ property together with the XamDataGrid’s ’DataSource’ to the same data. This way handling the ‘DataContextChanged’ property you can set the height of the first SummaryRecordPresenter using Dispatcher. I am sending you modified version of my sample application(DataGridfuncsLastModifications.zip).
If you have any other questions on this matter, feel free to ask.
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
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 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?
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.