Using the BusyIndicator on SfDataGrid and MVVM

Hi,

I am trying to learn how to implement the BusyIndicator om the SfDataGrid in a pure MVVM manner. I have created a little demo code (.NET 6 WPF using Visual Studio Community 2022).

I have looked at many examples, but have not been able to get it to work. Can you show me the correct way?

The application opens with MainWindow.xaml

There is a contentcontrol in that xaml page and I load DataGridDemoViewModel/ DataGridDemoView. The approach is ViewModel first.

The DataGridDemoViewModel  gets access to the SfDataGrid and loads some data once the datagrid is rendered. The idea is to 'pause' the application to simulate a wait and show the BusyIndicator.

Kind regards,

Niels van Strien

 





Attachment: SyncfusionLearning_5e6d634e.7z

1 Reply

VS Vijayarasan Sivanandham Syncfusion Team January 19, 2022 02:33 PM UTC

Hi NM van Strien,

Based on provided information we have prepared the sample for achieve your requirement. 


Please have a look at this sample and let us know if you have any concerns in this.

Regards, 
Vijayarasan S 


Loader.
Up arrow icon