ASPxTreeList.CustomErrorText Event
Enables you to provide custom error descriptions for exceptions raised during a callback.
Namespace: DevExpress.Web.ASPxTreeList
Assembly: DevExpress.Web.ASPxTreeList.v24.2.dll
Declaration
Event Data
The CustomErrorText event's data class is TreeListCustomErrorTextEventArgs. 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.