aspnet-devexpress-dot-web-dot-aspxtreelist-04e32634.md
Provides data for the ASPxTreeList.CustomDataCallback event.
Namespace : DevExpress.Web.ASPxTreeList
Assembly : DevExpress.Web.ASPxTreeList.v25.2.dll
NuGet Package : DevExpress.Web
public class TreeListCustomDataCallbackEventArgs :
TreeListCustomCallbackEventArgs
Public Class TreeListCustomDataCallbackEventArgs
Inherits TreeListCustomCallbackEventArgs
TreeListCustomDataCallbackEventArgs is the data class for the following events:
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:
protected void ASPxTreeList1_CustomDataCallback(object sender,
DevExpress.Web.ASPxTreeList.TreeListCustomDataCallbackEventArgs e) {
e.Result = ASPxTreeList1.SelectionCount.ToString();
}
<ClientSideEvents CustomDataCallback="function(s, e) {
document.getElementById('lbSelectionInfo').innerHTML = e.result;
}"
SelectionChanged="function(s, e) {
treeList.PerformCustomDataCallback('');
}" />
Object EventArgs TreeListCustomCallbackEventArgs TreeListCustomDataCallbackEventArgs
See Also
TreeListCustomDataCallbackEventArgs Members