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
   [Collapse]MVCxClientRichEdit Class
     MVCxClientRichEdit Members
     MVCxClientRichEdit Constructor
    [Expand]MVCxClientRichEdit Events
    [Collapse]MVCxClientRichEdit Methods
     [Expand]Cast Method
     [Collapse]PerformCallback Method
       PerformCallback(Object) Method
       PerformCallback(Object, Action<String>) Method
   [Expand]MVCxClientRoundPanel Class
   [Expand]MVCxClientScheduler Class
   [Expand]MVCxClientSchedulerTemplateToolTip Class
   [Expand]MVCxClientSchedulerToolTipDisplayingEventArgs Class
    MVCxClientSchedulerToolTipDisplayingEventHandler Delegate
   [Expand]MVCxClientSpreadsheet Class
   [Expand]MVCxClientTokenBox Class
   [Expand]MVCxClientTreeList Class
   [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

MVCxClientRichEdit.PerformCallback(Object) Method

Sends a callback with a parameter to update the RichEdit by processing the passed information on the server, in an Action specified via the RichEditSettings.CustomActionRouteValues property.

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 RichEditSettings.CustomActionRouteValues property.

Expanded Remarks

Use the PerformCallback method if you need to dynamically update the RichEdit by asynchronously going to the server (using AJAX-based callback technology) and performing server-side processing in the specified Action. Via the PerformCallback method's data parameter, you can pass any information collected on the client to the server for further server processing.

The PerformCallback method posts back to the server using the callback technology and is handled in an Action specified by the RichEditSettings.CustomActionRouteValues 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 RichEdit automatically updates itself (it re-renders the required parts) after a custom callback has been sent and processed on the server.

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

Expanded See Also

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