Skip to main content
A newer version of this page is available. .

ASPxPivotGrid.OLAPQueryTimeout Event

Occurs when the query time-out has expired.

Namespace: DevExpress.Web.ASPxPivotGrid

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

NuGet Package: DevExpress.Web

Declaration

public event EventHandler OLAPQueryTimeout

Event Data

The OLAPQueryTimeout event's data class is EventArgs.

Remarks

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=http://demos.devexpress.com/Services/OLAP/msmdpump.dll; Initial catalog=Adventure Works DW Standard Edition;Cube name=Adventure Works;Query Timeout=2;";
    ASPxPivotGrid1.DataBind();
}
protected void ASPxPivotGrid1_OLAPException(object sender, PivotOlapExceptionEventArgs e) {
    throw new Exception("OLAP Exception: " + e.Exception.Message);
}
See Also