Hey, this has almost solved my problem although the data only refreshes when I click a filter since I've written an extension for the GridVirtualizingCollectionView.
The goal is this:
I hvae an SfDataGrid that has aprox. 70 columns and around 2,000 rows and it needs to load those in as quickly as possible. Currently I am doing this;
My extension class called GridVirtualizingCollectionViewExt take an argument in it's of type IEnumerable<T>
it then takes 100 items from that and passes that to the base constructor of GridVirtualizingCollectionView.
Then in my constructor I start a task that takes the full list, sleeps for half a second and then uses the SetSource function to the master collection.
This has worked in the sense I can now load the items in considerably quicker than before. However, I need the grid to redraw after calling SetSource but it does not. If i click a filter button it will redraw the entire list and filter it. I need the redraw without clicking that filter. The reasons for this are as follows:
If you use the drag and drop Group by functionality of the sfDataGrid it will ONLY group the items that have been drawn.
If you use the filter option that lets you filter individual rows, it will also ONLY filter on items that have already been draw.
If you force a redraw by clicking sort by then the other two bits of functionality will then work as intended but I need that drawing capability after I've loaded the items in successfully.
Is there a way to do this? is there sample code? the documentation doesn't help too much as I do not have direct access to the grid in code, so I need to trigger this via the bound list somehow