After upgrading to the latest 14.1 release setting summaries in code no longer works. I am setting the IsApplied property on the summary operand to true and i can see in the debugger that the property is set correctly, but this does not result in the grid showing the summary. My code looks similar to the code at http://help.infragistics.com/Help/Doc/WPF/2012.1/CLR4.0/html/xamGrid_Programmatically_Add_Summaries.html
Hello,
Thank you for your post. I was been looking into your issue and I managed to add the summary in code-behind like e.g.:
this.xamGrid1.SummaryRowSettings.AllowSummaryRow = SummaryRowLocation.Top;
this.xamGrid1.SummaryRowSettings.SummaryScope = SummaryScope.ColumnLayout;
Column DisplaySummary = this.xamGrid1.Columns.DataColumns["ProductName"];
DisplaySummary.SummaryColumnSettings.SummaryOperands[0].IsApplied = true;
I am attaching a sample application(XamGrid_SummaryDef.zip). Could you please modify it in order to meet exactly your scenario.
Looking forward to hearing from you.
The problem appears to be with the SummaryScope. In my project it is set to ChildBand. When I change your sample to ChildBand the summary is not set.
Hello John,
I am checking if this is still an issue for you.
If you require any further assistance please do not hesitate to ask.
Hi John,
Could you please attach a sample application(or modify my sample) in order to be able the exact scenario? Also please tell me the version where it has been worked like 12.1.20121.1010 ?
I modified your first sample and by only change the SummaryScope to ChildBand it produced the problem.
Thank you for your feedback. Could you please modify my sample application in order to see how exactly has been implemented the summary activation in your code behind initially?
This way I will be able to investigate it and contact our development team, if it is necessary.
Thanks for this, but I am a little confused as to why a change was needed. Is it a bug that changing the summary scope made the initial code not work? If so will this bug be fixed?