Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
3160
How to build pivot grid on a background thread?
posted

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.

 

Parents
  • 8831
    posted

    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.

Reply Children