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.
Unfortunately, activation email could not send to your email. Please try again.

GridDataControl databindingcomplete event

Thread ID:

Created:

Updated:

Platform:

Replies:

113905 Oct 16,2013 10:07 AM Nov 19,2013 06:33 AM WPF 2
loading
Tags: GridControl
Sean Roddis
Asked On October 16, 2013 10:07 AM

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

Sean Roddis
Replied On October 16, 2013 10:08 AM

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

Saravanan M [Syncfusion]
Replied On November 19, 2013 06:33 AM

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

CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.

;