Back to Devexpress

ASPxTreeList.CustomErrorText Event

aspnet-devexpress-dot-web-dot-aspxtreelist-dot-aspxtreelist-3195c15e.md

latest2.2 KB
Original Source

ASPxTreeList.CustomErrorText Event

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

Namespace : DevExpress.Web.ASPxTreeList

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

NuGet Package : DevExpress.Web

Declaration

csharp
public event TreeListCustomErrorTextEventHandler CustomErrorText
vb
Public Event CustomErrorText As TreeListCustomErrorTextEventHandler

Event Data

The CustomErrorText event's data class is TreeListCustomErrorTextEventArgs. The following properties provide information specific to this event:

PropertyDescription
ErrorTextGets or sets the error text.
ExceptionGets 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

Tree List

Custom Error Text for Callback Exception

ASPxTreeList Class

ASPxTreeList Members

DevExpress.Web.ASPxTreeList Namespace