ASPxTreeList.CustomErrorText Event

Enables you to provide custom error descriptions for exceptions raised during a callback.

Namespace: DevExpress.Web.ASPxTreeList

Assembly: DevExpress.Web.ASPxTreeList.v19.2.dll

Declaration

public event TreeListCustomErrorTextEventHandler CustomErrorText
Public Event CustomErrorText As TreeListCustomErrorTextEventHandler

Event Data

The CustomErrorText event handler receives an argument of the TreeListCustomErrorTextEventArgs type. The following properties provide information specific to this event.

Property Description
ErrorText Gets or sets the error text.
Exception Gets the exception.

Remarks

The CustomErrorText event occurs when any exception is raised within the ASPxTreeList during a callback, and allows you to change the error text displayed by default. This can be useful, for example, if you want to localize error messages.

Use the TreeListCustomErrorTextEventArgs.ErrorText property to specify the error text. An exception can be obtained using the TreeListCustomErrorTextEventArgs.Exception property.

See Also