Free Trial Buy Now

Docking - Callbacks (AJAX)

Description

ASPxDockPanel has the capability to load panel content on demand via callbacks. Several content loading modes are available via the following settings of the LoadContentViaCallback property:

  • None - The content is always (initially) rendered inside a dock panel (the default behavior).
  • OnPageLoad - Loading of panel contents starts immediately after the entire page has been loaded.
  • OnFirstShow - Loading of panel contents starts when a dock panel is invoked for the first time.
  • OnDock - Loading of panel contents starts every time after a panel has been docked to a dock zone.
  • OnDockStateChange - Loading of panel contents starts every time after a panel's dock state has been changed (that is a docked panel becomes floating or a float panel docks to a zone).
  • OnFloating - Loading of panel contents starts every time after a panel has been made floating.

Using the postponed load of panel contents, you can enhance the response time of your web page on its initial load. You can also update the content of a dock panel programmatically on demand.

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

Version: v2012 vol 2.8
Experience the DevExpress Difference Today
Demos with source code are included with an installation of DevExpress controls for ASP.NET. Refer to the Demos and Sample Applications topic to learn more.
To download your free evaluation copy of our award-winning ASP.NET libraries, visit the Downloads page
All DevExpress ASP.NET Controls ship as part of DXperience ASP.NET, Enterprise, and Universal.
To obtain pricing information, visit the Pricing Options page or contact us via Email at info@devexpress.com
or by telephone at +1 (818) 844-3383 between 8:30am and 5pm Pacific Time.