Hi,
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.
Hello Tomas,
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.
Hi Mike,
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.
xamDataGrid.Grouping.Sample.zip
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.
6825.xamDataGrid.Grouping.Sample.zip
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.
XamDataGrid_Grouping.zip
Dear Mike,
Thanks for reply. I am still using v16.2.x and this explains why it does not work. Since it was fixed with requested idea later with v18.1.x.
I've upgraded solution to use v18.2 but I still face the problem due we use different field bound (Unbound). Also I've tried to change this to AlternateBinding but this does not work either.
Infragistics.DataGrid.Grouping_still_notWorking.zip
Like I said, problem persist. Your provided example modified the data structure and eliminated Unbound / Alternative binding. Please check my last uploaded zip file.