Hi,
I have implemented the SummaryDefintion on the XamDataGrid. I just want to the summary using the simple Sum calculation.
I can implement by adding the SummaryDefinition to the FieldLayouts easy enough however the summary isn't selectable/clickable? How do i change it so that the summary can be selected (with the rest of the grid) to enable copy and paste? I have downloaded the 17.1 Samples and none of the summaries appear to be enabled for selection either.
Thanks
Can you please provide detail as code how you were able to show the total of values within summarydefinition?
Same way as shown in the examples
e.g.
<igDP:XamDataGrid.FieldLayouts> <igDP:FieldLayout Key="OrdersOrderDetails"> <!-- #BEGIN SNIPPET# --> <!-- Add a SummaryDefinition to the FieldLayout.SummaryDefinitions Collection --> <igDP:FieldLayout.SummaryDefinitions> <igDP:SummaryDefinition Key="idp_count" SourceFieldName="OrderID" Calculator="Sum" /> </igDP:FieldLayout.SummaryDefinitions> <!-- #END SNIPPET# --> </igDP:FieldLayout> </igDP:XamDataGrid.FieldLayouts>
Hello BM,
The XamDataGrid currently does not allow the selection of summaries and summary records. The ability to copy and paste them was discussed a little which back, though, and a sample project was created that shows how you can copy those values. You can find this discussion here: https://es.infragistics.com/community/forums/t/105444.aspx.
If you wish to have the summaries be selectable, I would have to recommend a modification of the default styles for the SummaryResultPresenter such that you add something to that element's template that allows selection, such as a TextBox. The default style for SummaryResultPresenter can be found in the DataPresenterGeneric_Express.xaml file commonly located at the following directory:
C:\Program Files (x86)\Infragistics\your_version_here\WPF\DefaultStyles\DataPresenter
Currently, the element used to display the summaries is a TextBlock element, and if you were to replace this with something that allows selection, you would be able to copy the summary values.
If you would like to see selection of the summary row included in a future release, I would recommend suggesting a new product idea for this feature by e-mailing ideas@Infragistics.com. This will place you in direct communication with our product management teams who plan and prioritize upcoming features and development based on community and user feedback.
Please let me know if you have any other questions or concerns on this matter.
Sincerely,AndrewAssociate Developer