PopupControlSettings.LoadContentViaCallback Property
Gets or sets a value specifying the content loading mode for the PopupControl.
Namespace: DevExpress.Web.Mvc
Assembly: DevExpress.Web.Mvc5.v24.2.dll
NuGet Package: DevExpress.Web.Mvc5
#Declaration
public LoadContentViaCallback LoadContentViaCallback { get; set; }
#Property Value
Type | Description |
---|---|
Load |
One of the Load |
Available values:
Name | Description |
---|---|
None | Specifies that the content is always (initially) rendered inside popup windows. |
On |
Specifies that loading of popup window contents starts when a popup window is invoked for the first time. |
On |
Specifies that loading of the popup window contents starts immediately after the entire page has been loaded. |
#Remarks
Use the LoadContentViaCallback property to control when a popup window’s content should be loaded - always, on a page load, or when the window is first shown.
Note
To enable loading content via callback, it is necessary to define route values to the controller and the action that will handle Popup
Using the postponed load of popup window contents (by setting the LoadContentViaCallback property to LoadContentViaCallback.OnPageLoad or LoadContentViaCallback.OnFirstShow), you can enhance the response time of your web page on its initial load.
During callback, a specific loading panel can be displayed within the window.
Note
The Load