I'm not sure how to describe my problem. In my project I have to have four sets of data that I have to switch between as the ItemsSource of my Gridview. Initially I was rebinding the ItemsSource each time I needed to switch and things were working fine. Now I had to switch to having the ItemsSource bound to one RadObservableCollection and then clearing it and filling it with the data from the other collections (This was much faster). This new method works like this:
While this switch is occurring, the grid is being grouped and filtered. Before this step worked fine, but now it shows the information it should, but then shows the whole grouped dataset without the filtering tacked on at the end. In the image attached you will see that the grid is grouped by regions and supposed to be filtering by "Africa". The first group is the correct one, and then the rest are not supposed to be there. I tried switching to an older dll (was using the 716 version of Q2), but it was still occurring there.
If you know of another way of switching between datasets, I would be glad to try them. Maybe that will fix/bypass the problem that is causing the gridview to get confused. I know the best thing for you would be for me to recreate the issue in a sample project, but I really don't think I can simplify my project enough to recreate the issue. I will probably try creating a sample project later tonight though.
private
static
void
ReplaceObservableCollectionContents<T>(RadObservableCollection<T> destination, RadObservableCollection<T> source)
{
destination.SuspendNotifications();
destination.Clear();
destination.AddRange(source);
destination.ResumeNotifications();
}
While this switch is occurring, the grid is being grouped and filtered. Before this step worked fine, but now it shows the information it should, but then shows the whole grouped dataset without the filtering tacked on at the end. In the image attached you will see that the grid is grouped by regions and supposed to be filtering by "Africa". The first group is the correct one, and then the rest are not supposed to be there. I tried switching to an older dll (was using the 716 version of Q2), but it was still occurring there.
If you know of another way of switching between datasets, I would be glad to try them. Maybe that will fix/bypass the problem that is causing the gridview to get confused. I know the best thing for you would be for me to recreate the issue in a sample project, but I really don't think I can simplify my project enough to recreate the issue. I will probably try creating a sample project later tonight though.