Back to Devexpress

TreeListCustomDataCallbackEventArgs Class

aspnet-devexpress-dot-web-dot-aspxtreelist-04e32634.md

latest2.7 KB
Original Source

TreeListCustomDataCallbackEventArgs Class

Provides data for the ASPxTreeList.CustomDataCallback event.

Namespace : DevExpress.Web.ASPxTreeList

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

NuGet Package : DevExpress.Web

Declaration

csharp
public class TreeListCustomDataCallbackEventArgs :
    TreeListCustomCallbackEventArgs
vb
Public Class TreeListCustomDataCallbackEventArgs
    Inherits TreeListCustomCallbackEventArgs

TreeListCustomDataCallbackEventArgs is the data class for the following events:

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:

csharp
protected void ASPxTreeList1_CustomDataCallback(object sender,
DevExpress.Web.ASPxTreeList.TreeListCustomDataCallbackEventArgs e) {
    e.Result = ASPxTreeList1.SelectionCount.ToString();
}
aspx
<ClientSideEvents CustomDataCallback="function(s, e) {
    document.getElementById('lbSelectionInfo').innerHTML = e.result;
}"

SelectionChanged="function(s, e) {
    treeList.PerformCustomDataCallback('');
}" />

Inheritance

Object EventArgs TreeListCustomCallbackEventArgs TreeListCustomDataCallbackEventArgs

See Also

TreeListCustomDataCallbackEventArgs Members

PerformCustomDataCallback(arg)

Tree List

DevExpress.Web.ASPxTreeList Namespace