Skip to main content

ASPxPivotGrid.OLAPQueryTimeout Event

Occurs when the query time-out has expired.

Namespace: DevExpress.Web.ASPxPivotGrid

Assembly: DevExpress.Web.ASPxPivotGrid.v22.2.dll

NuGet Package: DevExpress.Web


public event EventHandler OLAPQueryTimeout

Event Data

The OLAPQueryTimeout event's data class is EventArgs.


You can use the ASPxClientCallbackErrorEventArgs.message property to retrieve detailed information about the unhandled exception.

The following example shows how to handle OLAPException. The query timeout is set to 2 to trigger the OLAPQueryTimeout event.

protected void ASPxPivotGrid1_OLAPQueryTimeout(object sender, EventArgs e)
    throw new NotImplementedException();
protected void ASPxPivotGrid1_CustomCallback(object sender, DevExpress.Web.ASPxPivotGrid.PivotGridCustomCallbackEventArgs e)
    ASPxPivotGrid1.OLAPConnectionString = "Provider=MSOLAP;Data Source=; Initial catalog=Adventure Works DW Standard Edition;Cube name=Adventure Works;Query Timeout=2;";
protected void ASPxPivotGrid1_OLAPException(object sender, PivotOlapExceptionEventArgs e) {
    throw new Exception("OLAP Exception: " + e.Exception.Message);
See Also