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
 [Collapse]ASP.NET WebForms Controls
  [Expand]Reporting
  [Expand]Chart Control
  [Expand]Grid View
  [Expand]Card View
  [Collapse]Vertical Grid
   [Expand]Product Information
   [Expand]ASPxVerticalGrid Getting Started
   [Expand]Fundamentals
   [Collapse]Concepts
    [Expand]Binding to Data
    [Expand]Data Representation Basics
    [Expand]Focus and Navigation
    [Collapse]Data Editing
      Batch Edit Mode
      Adding and Deleting Records
      Record Validation and Error Indication
      Processing Custom Callbacks
    [Expand]Data Shaping and Manipulation
    [Expand]Data Formatting
     Appearance Customization
     Templates
    [Expand]Export
     Toolbars
    ASPxVerticalGrid Designer
   [Expand]Visual Elements
  [Expand]Spreadsheet
  [Expand]Rich Text Editor
  [Expand]Image and Data Browsing
  [Expand]Docking and Popups
  [Expand]Site Navigation and Layout
  [Expand]File Management
  [Expand]Multi-Use Site Controls
  [Expand]Scheduler
  [Expand]HTML Editor
  [Expand]Pivot Grid
  [Expand]Tree List
  [Expand]Gauges
  [Expand]Data Editors
  [Expand]Spell Checker
  [Expand]Query Builder
 [Expand]ASP.NET MVC Extensions
 [Expand]Localization
 [Expand]Redistribution and Deployment
  Get More Help
 [Expand]API Reference
[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

Processing Custom Callbacks

ASPxVerticalGrid enables you to asynchronously go to the server and perform server-side processing using AJAX-based callback technology. Turn on the ASPxGridBase.EnableCallBacks option to enable the callback mode. Otherwise, round trips to the server are performed using standard postbacks (refreshing the whole page).

Expanded Custom Callbacks

Custom callbacks enable you to perform the required server-side actions. After a custom callback has been performed, ASPxVerticalGrid is re-rendered.

Use the ASPxClientVerticalGrid.PerformCallback method to send a custom callback to the server. This method generates the server-side ASPxVerticalGrid.CustomCallback event. The method's args argument allows you to pass information from the client-side to the server. If specified, it is passed to the event handler as the Parameters property.

Handle the ASPxClientVerticalGrid.BeginCallback and ASPxClientVerticalGrid.EndCallback events if you need to perform actions on the client-side before and after callback processing.

Restrictions:

  • Changing the settings of other controls contained on the page has no effect because a custom callback only contains the information about ASPxVerticalGrid.
  • Do not export ASPxVerticalGrid content during callbacks, because ASP.NET does not support sending binary content during a callback.
  • The view state does not update during a callback.

Expanded Custom Data Callbacks

When developing web applications, you often need to perform specific actions on the server and send the result back to the client for further processing. To make this task easy, the ASPxVerticalGrid enables you to perform custom data callbacks.

Use the client-side ASPxClientVerticalGrid.GetValuesOnCustomCallback method to initiate a custom data callback. This method generates the server-side ASPxVerticalGrid.CustomDataCallback event. The method's args argument (if specified) is passed to the event handler as the Parameters property.

After the callback is processed in the ASPxVerticalGrid.CustomDataCallback event handler, the resulting information can be passed back to the client side's function, specified by the onCallback parameter. The event's ASPxGridCustomDataCallbackEventArgs.Result property specifies this information.

Note

Modifying ASPxVerticalGrid settings during a custom data callback has no effect because ASPxVerticalGrid is not re-rendered after a custom data callback.

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