We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

GridDataControl databindingcomplete event

GridDataControl temporarily displays a white box when it is building a large grid before the data is finnaly shown. There is a small millisecend lag betwen the time this white outline box appear and the time the data finally shows up in the grid. Is there any event that I can listen to know when the databinding process is complete and the data is visible in the grid

2 Replies

SR Sean Roddis October 16, 2013 02:08 PM UTC

In the WPF DataGrid it would be the ItemContainerGenerator.StatusChanged event


SM Saravanan M Syncfusion Team November 19, 2013 11:33 AM UTC

Hi Sean,

We have analyzed your query. If you want to wait till databinding process to get complete, you can use Busyindicator. It will show the popup window till Grid is loaded all data. You can refer the below codesnippet to achieve your requirement.

Codesnippet[C#]:

this.grid.ItemsSourceChanged += new Syncfusion.Windows.ComponentModel.GridRoutedEventHandler(grid_ItemsSourceChanged);

 

 void grid_ItemsSourceChanged(object sender, Syncfusion.Windows.ComponentModel.SyncfusionRoutedEventArgs args)

        {

            BusyIndicator busyindicator = new BusyIndicator();

            busyindicator.Name = "Busy";

            busyindicator.ProgressValue = 0;

            Popup codePopup = new Popup();

            codePopup.Placement = PlacementMode.Center;

            codePopup.Child = busyindicator;

            codePopup.Height = 90;

            busyindicator.IsBusy = true;

            codePopup.Width = 200;

            codePopup.PlacementTarget =grid ;

            codePopup.IsOpen = true;

          

            this.Dispatcher.BeginInvoke(new Action(() =>

            {

            busyindicator.IsBusy = false;

   

            codePopup.IsOpen = false;

            }), DispatcherPriority.Background);

          

            //throw new NotImplementedException();

        }

 

We have prepared a sample based on this and please find the sample location below,

Please let us know if you have any queries,

Regards,

Saravanan.M



Busyindicator_6b8f74d5.zip

Loader.
Live Chat Icon For mobile
Up arrow icon