Skip to main content
Tab

ASPxGridViewCustomCallbackEventArgs Class

Provides data for the ASPxGridView.CustomCallback event.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v24.2.dll

NuGet Package: DevExpress.Web

#Declaration

public class ASPxGridViewCustomCallbackEventArgs :
    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.

#Example

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