I need to be load a pivot grid without blocking my UI. I am using:
ExposureGrid.DataSource.DeferredLayoutUpdate = true;ExposureGrid.DataSource.LoadSchemaCompleted += (s, e) => { ViewModel.LoadingData = false; }; ExposureGrid.DataSource.LoadSchemaAsync(); ExposureGrid.DataSource.DeferredLayoutUpdate = false;
Of course, LoadSchemaCompleted never fires.
bump
I am using flat data source. What is the suggested pattern for loading a pivot grid async? Is there an example you can direct me too?
Thanks,
Sam
Hello Sam,
The LoadSchemaCompleted event is fired once only. If you already have assigned your data source instance to serve as data source of pivot grid or data selector, LoadSchemaAsync() is automatically called for the data source when LayoutUpdated event is fired.
Could you specify what kind of data source you have?
Thanks.Plamen.