Skip to main content

TreeListCustomDataCallbackEventArgs Class

Provides data for the ASPxTreeList.CustomDataCallback event.

Namespace: DevExpress.Web.ASPxTreeList

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

Declaration

public class TreeListCustomDataCallbackEventArgs :
    TreeListCustomCallbackEventArgs

Example

This example shows how to display the number of selected nodes. The client-side ASPxClientTreeList.SelectionChanged event is handled to send a callback to the server to obtain the number of selected nodes. This information is set to the client (ASPxClientTreeList.CustomDataCallback event) and displayed below the ASPxTreeList.

The image below shows the result:

exCustomDataCallback

protected void ASPxTreeList1_CustomDataCallback(object sender,
DevExpress.Web.ASPxTreeList.TreeListCustomDataCallbackEventArgs e) {
    e.Result = ASPxTreeList1.SelectionCount.ToString();
}

Inheritance

Object
EventArgs
TreeListCustomCallbackEventArgs
TreeListCustomDataCallbackEventArgs
See Also