I'm using SaveCustomizations(fs) to store the grid layout for various events on the XamDatagrid.
When Xamdatagrid is in GroupBy mode, I am hoping to store the grid layout when groups are expanded.To do so, I call SaveCustomizations(fs) within the RecordExpanded event.
This does not seem to record the expanded groups. Is there a way to capture this?
Also, when in GroupBy mode, can I programmaticall perform a custom sort for the top level groups? Looks like the default to alphabetical order, but I would like to change this.
Thank you
Hello Patrick,
Please refer to this forum post for performing Save and Load customizations to save and load the group-by settings of XamDataGrid. However, there is no built in way to save the expanded state for groupby records. This is explained in detail here:http://es.infragistics.com/community/forums/p/56274/400005.aspx#400005
As for your second question on how to programmatically perform custom sort on top level groups when in GroupBy mode: Can you please explain what you meant by top level groups?
I will further look into this issue as soon as I hear back from you.
Sincerely,Sahaja KokkalagaddaAssociate Software Developer
Okay thank you for the details.
Regarding the second question. I'm looking to custom sort the group-by.... groups (opposed to each record set within the groups) if that makes sense.
For Custom Sorting the XamDataGrid you can use the SortComparer property of the FieldSettings object. Please refer to the sample in this forum post on how to set this property for a given field.
Let me know if I may be of further assistance.