Skip to main content

ASPxClientTreeListCustomDataCallbackEventArgs.result Property

Gets the information passed from the server-side ASPxTreeList.CustomDataCallback event.

Declaration

result: any

Property Value

Type Description
any

An object that represents the information passed from the server-side ASPxTreeList.CustomDataCallback event.

Remarks

After the callback is processed in the ASPxTreeList.CustomDataCallback event handler, the resulting information is passed back to the client-side ASPxClientTreeList.CustomDataCallback event. This information can be obtained via the result parameter.

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();
}
See Also