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
  [Expand]DevExpress.Web.ASPxTreeList.Scripts
  [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
  [Collapse]DevExpress.Web.MVC.Scripts
   [Expand]MVCxClientBeforeExportRequestEventArgs Class
    MVCxClientBeforeExportRequestEventHandler Delegate
   [Expand]MVCxClientBeginCallbackEventArgs Class
    MVCxClientBeginCallbackEventHandler Delegate
   [Expand]MVCxClientCalendar Class
   [Expand]MVCxClientCallbackPanel Class
   [Expand]MVCxClientCardView Class
   [Expand]MVCxClientChart Class
   [Expand]MVCxClientComboBox Class
   [Expand]MVCxClientDataView Class
   [Expand]MVCxClientDateEdit Class
   [Expand]MVCxClientDockManager Class
   [Expand]MVCxClientDockPanel Class
   [Expand]MVCxClientDocumentViewer Class
   [Expand]MVCxClientFileManager Class
   [Expand]MVCxClientGlobalBeginCallbackEventArgs Class
    MVCxClientGlobalBeginCallbackEventHandler Delegate
   [Expand]MVCxClientGlobalEvents Class
   [Expand]MVCxClientGridView Class
   [Expand]MVCxClientHtmlEditor Class
   [Expand]MVCxClientImageGallery Class
   [Expand]MVCxClientListBox Class
   [Expand]MVCxClientNavBar Class
   [Expand]MVCxClientPageControl Class
   [Expand]MVCxClientPivotGrid Class
   [Expand]MVCxClientPopupControl Class
   [Expand]MVCxClientReportDesigner Class
   [Expand]MVCxClientReportDesignerSaveCommandExecutedEventArgs Class
    MVCxClientReportDesignerSaveCommandExecutedEventHandler Delegate
   [Expand]MVCxClientReportViewer Class
   [Expand]MVCxClientRichEdit Class
   [Expand]MVCxClientRoundPanel Class
   [Expand]MVCxClientScheduler Class
   [Expand]MVCxClientSchedulerTemplateToolTip Class
   [Expand]MVCxClientSchedulerToolTipDisplayingEventArgs Class
    MVCxClientSchedulerToolTipDisplayingEventHandler Delegate
   [Expand]MVCxClientSpreadsheet Class
   [Expand]MVCxClientTokenBox Class
   [Collapse]MVCxClientTreeList Class
     MVCxClientTreeList Members
     MVCxClientTreeList Constructor
    [Expand]MVCxClientTreeList Events
    [Collapse]MVCxClientTreeList Methods
     [Expand]Cast Method
     [Expand]PerformCallback Method
     [Collapse]PerformCustomDataCallback Method
       PerformCustomDataCallback(Object) Method
   [Expand]MVCxClientTreeView Class
   [Expand]MVCxClientUploadControl Class
   [Expand]MVCxClientUtils Class
   [Expand]MVCxClientVerticalGrid Class
   [Expand]MVCxClientWebDocumentViewer Class
   [Expand]MVCxSchedulerToolTipType Class
  [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

MVCxClientTreeList.PerformCustomDataCallback(Object) Method

Sends a callback with a parameter to process the passed information on the server, in an Action specified via the TreeList's TreeListSettings.CustomDataActionRouteValues property, and then return the processing result to the client, to the ASPxClientTreeList.CustomDataCallback event. This method does not update the TreeList.

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

Expanded Syntax

Parameters

data
Type: Object
An object containing any information that needs to be passed to a handling Action specified via the TreeListSettings.CustomDataActionRouteValues property.

Expanded Remarks

Use the PerformCustomDataCallback method if you need to asynchronously go to the server (using AJAX-based callback technology) and perform server-side processing in the specified Action. Via the PerformCustomDataCallback method's data parameter, you can pass any information collected on the client to the server, for further server processing.

The PerformCustomDataCallback method posts back to the server using the callback technology and is handled in an Action specified by the TreeList's TreeListSettings.CustomDataActionRouteValues property. Any data passed via the method's data parameter can be accessed on the server as a parameter of the specified Action. So, the necessary server-side actions can be performed in the handling Action based upon the value(s) passed from the client.

For instance, you can pass values as a hash table.

Client Script Code:
Controller Code:

The TreeList does not automatically update (re-render) itself after such a custom data callback has been sent and processed on the server.

If you need to perform a custom callback to the server that updates the TreeList, you can send this callback via the PerformCallback client method and handle it in an Action specified via the TreeListSettings.CustomActionRouteValues property.

If you need to perform actions on the client-side before and after callback processing, handle the BeginCallback and ASPxClientTreeList.EndCallback events.

Expanded See Also

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