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) { (sender as ASPxGridView).DataBind() }
source share