I am using XamDataGrid with grouping option. I face a problem that grouping items not getting updated when grouped field value is changed. So for example I have data containing properties Name and State. Then view is sorted by State in view. As result the change is coming over network and State gets changes. I can see that value changes in the view however grouping is not updated. The item still persist in wrong group while it should be in different.
It sounds like this a feature request which was requested in this forum. I am not sure if this feature was implemented.
Please let me know how can I achieve this.
Thank you for contacting Infragistics!
This is the expected behavior as we find re-sorting the row at that time can be jarring to the user. If you want to re-sort after the grouped field value changes you can call RefreshSort off the record collection.
I was not able to solve mentioned problem. I've provided a sample project where button changes one of the item Status value. As result I am expecting that grouped item list is getting changed including number count for affected group. Every button click should move single item from one grouped list to another based on state name.
Thank you for the update. I downloaded your sample however it does not build. Can you please attach a running sample that demonstrates your issue?
Reattached the project without binaries.
When I run your sample with version 18.1.20181.72 and only calling RefreshSort once like so:SamplesGrid.Records.RefreshSort();
The behavior works as expected. I am attaching the modified sample.