Tab
A newer version of this page is available. Switch to the current version.

ASPxGridViewCustomCallbackEventArgs Class

Provides data for the ASPxGridView.CustomCallback event.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v18.2.dll

Declaration

public class ASPxGridViewCustomCallbackEventArgs :
    ASPxGridCustomCallbackEventArgs
Public Class ASPxGridViewCustomCallbackEventArgs
    Inherits ASPxGridCustomCallbackEventArgs

Remarks

The ASPxGridView.CustomCallback event is raised when a round trip to the server has been initiated. This occurs when the client ASPxClientGridView.PerformCallback method is called.

The ASPxGridViewCustomCallbackEventArgs class provides the ASPxGridCustomCallbackEventArgs.Parameters property that specifies a string containing specific information passed from the client side. You can use this property to recognize different kinds of callbacks for performing various actions on the server side.

Examples

protected void Grid_CustomCallback(object sender, ASPxGridViewCustomCallbackEventArgs e) {
     if(e.Parameters == "ApplyCustomFilter")
          Grid.FilterExpression = "City = 'Bratislava'";
     if(e.Parameters == "ApplyCustomGrouping") { 
          Grid.DataColumns["City"].GroupBy();
          Grid.ExpandAll();
     }
}

Inheritance

Object
EventArgs
ASPxGridCustomCallbackEventArgs
ASPxGridViewCustomCallbackEventArgs
See Also