Log In
Home
Support
Demos
Documentation
Blogs
Training
Webinars
[Expand]General Information
[Expand]WinForms Controls
[Collapse]ASP.NET Controls and MVC Extensions
 [Expand]Prerequisites
 [Expand]What's Installed
 [Expand]Common Concepts
 [Expand]ASP.NET WebForms Controls
 [Expand]ASP.NET MVC Extensions
 [Expand]Localization
 [Expand]Redistribution and Deployment
  Get More Help
 [Collapse]API Reference
  [Expand]DevExpress.Data.Linq
  [Expand]DevExpress.Web
  [Expand]DevExpress.Web.ASPxGauges
  [Expand]DevExpress.Web.ASPxGauges.Base
  [Expand]DevExpress.Web.ASPxGauges.Scripts
  [Expand]DevExpress.Web.ASPxHtmlEditor
  [Expand]DevExpress.Web.ASPxHtmlEditor.Localization
  [Expand]DevExpress.Web.ASPxHtmlEditor.Scripts
  [Expand]DevExpress.Web.ASPxPivotGrid
  [Expand]DevExpress.Web.ASPxPivotGrid.Data
  [Expand]DevExpress.Web.ASPxPivotGrid.HtmlControls
  [Expand]DevExpress.Web.ASPxPivotGrid.Scripts
  [Expand]DevExpress.Web.ASPxRichEdit
  [Expand]DevExpress.Web.ASPxRichEdit.Localization
  [Expand]DevExpress.Web.ASPxRichEdit.Scripts
  [Expand]DevExpress.Web.ASPxScheduler
  [Expand]DevExpress.Web.ASPxScheduler.Commands.Dialogs
  [Expand]DevExpress.Web.ASPxScheduler.Controls
  [Expand]DevExpress.Web.ASPxScheduler.Dialogs
  [Expand]DevExpress.Web.ASPxScheduler.Drawing
  [Expand]DevExpress.Web.ASPxScheduler.Localization
  [Expand]DevExpress.Web.ASPxScheduler.Reporting
  [Expand]DevExpress.Web.ASPxScheduler.Scripts
  [Expand]DevExpress.Web.ASPxSpellChecker
  [Expand]DevExpress.Web.ASPxSpellChecker.Localization
  [Expand]DevExpress.Web.ASPxSpellChecker.Scripts
  [Expand]DevExpress.Web.ASPxSpreadsheet
  [Expand]DevExpress.Web.ASPxSpreadsheet.Localization
  [Expand]DevExpress.Web.ASPxSpreadsheet.Scripts
  [Expand]DevExpress.Web.ASPxTreeList
  [Expand]DevExpress.Web.ASPxTreeList.Internal
  [Expand]DevExpress.Web.ASPxTreeList.Localization
  [Collapse]DevExpress.Web.ASPxTreeList.Scripts
   [Collapse]ASPxClientTreeList Class
     ASPxClientTreeList Members
     ASPxClientTreeList Constructor
    [Expand]ASPxClientTreeList Events
    [Collapse]ASPxClientTreeList Methods
      ApplyFilter Method
      ApplyOnClickRowFilter Method
      ApplySearchPanelFilter Method
     [Expand]AutoFilterByColumn Method
      CancelEdit Method
     [Expand]Cast Method
      ClearFilter Method
      CloseFilterControl Method
      CollapseAll Method
      CollapseNode Method
      DeleteNode Method
      ExpandAll Method
      ExpandNode Method
      ExportTo Method
      Focus Method
     [Expand]FocusEditor Method
     [Expand]GetAutoFilterEditor Method
      GetColumnByFieldName Method
      GetColumnByIndex Method
      GetColumnByName Method
      GetColumnCount Method
      GetEditingNodeKey Method
     [Expand]GetEditor Method
     [Expand]GetEditValue Method
      GetFocusedNodeKey Method
      GetHorizontalScrollPosition Method
      GetNodeHtmlElement Method
      GetNodeState Method
     [Expand]GetNodeValues Method
      GetPageCount Method
      GetPageIndex Method
      GetPopupEditForm Method
     [Expand]GetSelectedNodeValues Method
      GetToolbar Method
      GetToolbarByName Method
      GetVerticalScrollPosition Method
      GetVisibleColumnCount Method
      GetVisibleNodeKeys Method
     [Expand]GetVisibleNodeValues Method
      GetVisibleSelectedNodeKeys Method
      GoToPage Method
      HideCustomizationWindow Method
      IsCustomizationWindowVisible Method
      IsEditing Method
      IsNodeSelected Method
      MakeNodeVisible Method
      MoveNode Method
      NextPage Method
     [Expand]PerformCallback Method
      PerformCustomCallback Method
      PerformCustomDataCallback Method
      PrevPage Method
     [Expand]SelectNode Method
     [Expand]SetEditValue Method
      SetFilterEnabled Method
      SetFocusedNodeKey Method
      SetHorizontalScrollPosition Method
      SetSearchPanelCustomEditor Method
      SetVerticalScrollPosition Method
     [Expand]ShowCustomizationWindow Method
      ShowFilterControl Method
     [Expand]SortBy Method
      StartEdit Method
     [Expand]StartEditNewNode Method
      UpdateEdit Method
   [Expand]ASPxClientTreeListColumn Class
   [Expand]ASPxClientTreeListColumnResizedEventArgs Class
    ASPxClientTreeListColumnResizedEventHandler Delegate
   [Expand]ASPxClientTreeListColumnResizingEventArgs Class
    ASPxClientTreeListColumnResizingEventHandler Delegate
   [Expand]ASPxClientTreeListContextMenuEventArgs Class
    ASPxClientTreeListContextMenuEventHandler Delegate
   [Expand]ASPxClientTreeListCustomButtonEventArgs Class
    ASPxClientTreeListCustomButtonEventHandler Delegate
   [Expand]ASPxClientTreeListCustomDataCallbackEventArgs Class
    ASPxClientTreeListCustomDataCallbackEventHandler Delegate
   [Expand]ASPxClientTreeListEndDragNodeEventArgs Class
    ASPxClientTreeListEndDragNodeEventHandler Delegate
   [Expand]ASPxClientTreeListExportFormat Class
   [Expand]ASPxClientTreeListNodeEventArgs Class
    ASPxClientTreeListNodeEventHandler Delegate
   [Expand]ASPxClientTreeListStartDragNodeEventArgs Class
    ASPxClientTreeListStartDragNodeEventHandler Delegate
   [Expand]ASPxClientTreeListToolbarItemClickEventArgs Class
    ASPxClientTreeListToolbarItemClickEventHandler Delegate
    ASPxClientTreeListValuesCallback Delegate
  [Expand]DevExpress.Web.Captcha
  [Expand]DevExpress.Web.Data
  [Expand]DevExpress.Web.Internal
  [Expand]DevExpress.Web.Localization
  [Expand]DevExpress.Web.Mvc
  [Expand]DevExpress.Web.Mvc.BinderSettings
  [Expand]DevExpress.Web.Mvc.Controllers
  [Expand]DevExpress.Web.MVC.Scripts
  [Expand]DevExpress.Web.Mvc.UI
  [Expand]DevExpress.Web.Office
  [Expand]DevExpress.Web.Office.Internal
  [Expand]DevExpress.Web.Rendering
  [Expand]DevExpress.Web.Scripts
  [Expand]DevExpress.XtraCharts.Web
  [Expand]DevExpress.XtraCharts.Web.Designer
  [Expand]DevExpress.XtraCharts.Web.Scripts
[Expand]ASP.NET Bootstrap Controls
[Expand]ASP.NET Core Bootstrap Controls
[Expand]WPF Controls
[Expand]Xamarin Controls
[Expand]Windows 10 App Controls
[Expand]Document Server
[Expand]Reporting
[Expand]Report Server
[Expand]Dashboard
[Expand]eXpressApp Framework
[Expand]CodeRush
[Expand]CodeRush Classic
[Expand]Cross-Platform Core Libraries
[Expand]Tools and Utilities
 End-User Documentation

ASPxClientTreeList.PerformCustomDataCallback Method

Sends a callback to the server and generates the server-side ASPxTreeList.CustomDataCallback event passing it the specified argument.

Namespace:DevExpress.Web.ASPxTreeList.Scripts
Assembly:JavaScript

Expanded Syntax

Parameters

arg
Type: String
A string value that represents any information that needs to be sent to the server-side ASPxTreeList.CustomDataCallback event.

Expanded Remarks

Use the PerformCustomDataCallback method if you need to asynchronously go to the server and perform some server-side processing using AJAX-based callback technology. You can pass the required information which can be collected on the client side as a string of arguments via the PerformCustomDataCallback method's arg parameter.

The PerformCustomDataCallback method posts back to the server using the callback technology and generates a server-side ASPxTreeList.CustomDataCallback event. The method's arg argument is passed to the event's handler as the TreeListCustomCallbackEventArgs.Argument property.

After the callback is processed in the server ASPxTreeList.CustomDataCallback event handler, the resulting information is passed back to the client-side CustomDataCallback event. This information is specified by the TreeListCustomDataCallbackEventArgs.Result property and can be accessed on the client via the ASPxClientTreeListCustomDataCallbackEventArgs.result property.

Expanded Example

This example shows how to display the number of selected nodes. The client-side 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 (CustomDataCallback event) and displayed below the ASPxTreeList.

The image below shows the result:

Expanded See Also

How would you rate this topic?​​​​​​​