Show theme settings Shopping cart Download trialFree Trial
Change Theme Settings
Change Theme Settings
Themes
 
Show All Themes
v
...v

Callbacks (AJAX)

This sample demonstrates the use of AJAX-based callbacks implemented by the ASPxPageControl.

In order to enable the use of callbacks, the control's EnableCallBacks property should be set to true. In this instance, the contents of non-active pages are not represented on the client. When a page is activated for the first time, its content is retrieved from the server and then cached on the client. The next time the page is activated, its content is taken from the client and no callback to the server is performed.

In this demo, the ActivateTabPageAction property is set to MouseOver for quick page selection (without having to click pages). The SaveStateToCookies property is set to true in order to preserve the state of the page control (in particular, the control's active page) when an end-user visits the site again.

Note that in this example we purposely pause callback processing on the server side for a second in order to make the Loading Panel visible during this time.

Collapse/Expand
Local Copy of this Demo
To inspect the source code for this demo on your machine, you must first install our components via the DevExpress Component Installer.
You can open a local copy of this online demo directly from this webpage (if using v20.2.8, 21.1.4 or higher).
Open CS Solution
Open VB Solution
The source code files for this demo are installed (by default) in the following directories:
\Users\Public\Documents\DevExpress Demos XX.X\Components\ASP.NET\CS\ASPxNavigationAndLayoutDemos
\Users\Public\Documents\DevExpress Demos XX.X\Components\ASP.NET\VB\ASPxNavigationAndLayoutDemos