The DevExpress MVC PopupControl extension has a capability to load the content of popup windows on demand. Several content loading modes are available via the following settings of the LoadContentViaCallback property.
- Default - The content is always (initially) rendered inside popup windows (the default behavior).
- OnPageLoad - Loading of popup window contents starts immediately after the entire page has been loaded.
- OnFirstShow - Loading of popup window contents starts when a popup window is invoked for the first time.
Using the postponed load of popup window contents, you can enhance the response time of your web page on its initial load
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.
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).
The source code files for this demo are installed (by default) in the following directory:
Open CS Solution
\Users\Public\Documents\DevExpress Demos XX.X\Components\ASP.NET\CS\MVCxDockAndPopupsDemos