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.Controls
  [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.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
   [Collapse]MVCxClientGridView Class
     MVCxClientGridView Members
     MVCxClientGridView Constructor
    [Collapse]MVCxClientGridView Events
      BeginCallback Event
    [Expand]MVCxClientGridView Methods
   [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
   [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]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]Cross-Platform Core Libraries
[Expand]Tools and Utilities
 End-User Documentation

MVCxClientGridView.BeginCallback Event

Occurs when a callback for server-side processing is initiated.

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

Expanded Syntax

Expanded Event Data

The event handler receives an argument of type MVCxClientBeginCallbackEventArgs containing data related to this event.

The following MVCxClientBeginCallbackEventArgs properties provide information specific to this event.
Property Description
command Gets a command name that identifies which client action forced a callback to be occurred.
customArgs Gets an object containing specific information (if any, as name/value pairs) that should be passed as a request parameter from the client to the server side for further processing.

Expanded Remarks

The BeginCallback and ASPxClientGridView.EndCallback events can be used to perform specific client-side actions (for example, to display and hide an explanatory text or picture) while a callback is being processed on the server side.

By handling the BeginCallback event, you can pass any required information from the client to the server via the MVCxClientBeginCallbackEventArgs.customArgs property.

Expanded Example

The example covers the following topics:

  • the GridView extension is bound to a DataSet that is filtered by external editors;
  • when a callback is performed, the grid's ASPxClientGridView.BeginCallback event is handled. In the MVC GridView extension, it is possible to transmit client-side values as callback arguments to a Controller's Action, returning a Partial View;
  • jQuery asynchronous requests are not able to serialize the Date, and thus the serialization should be performed manually;
  • a DateTime object is created from a serialized string using the DateTime.ParseExact method;
  • custom resources (scripts and CSS files) are compressed using the HTTP Handler as demonstrated in the How to compress and merge custom CSS and JavaScript files using ASPxHttpHandlerModule example.

The complete sample project is available in the DevExpress Code Central database at Code central example E3096.

Expanded See Also

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