Deexpress grid lazy loading

I have a DevExpress data grid in an ASP.Net webpage. Since the data that should be displayed in the grid is loading slowly, I would like the grid to load after the page is fully loaded.

Does the DevExpress grid support this?

+4
source share
1 answer

You can implement β€œdeferred” ASPxGridView data bindings as follows:

1) handle the client ASPxClientGridView.Init event that is generated on the client side after the control is initialized, but before it is displayed in the browser;

2) execute a custom callback ASPxGridViews through the client method ASPxClientGridView.PerformCallback (pass any data as a parameter);

3) handle the ASPxGridView.CustomCallback event on the server side and bind the grid (based on the passed parameter):

<dx:ASPxGridView … OnCustomCallback="grid_CustomCallback"> <ClientSideEvents Init="function(s, e) { s.PerformCallback(''); }" /> </dx:ASPxGridView> protected void grid_CustomCallback(object sender, ASPxGridViewCustomCallbackEventArgs e) { /*e.Parameters*/ (sender as ASPxGridView).DataBind() } 
+7
source

All Articles