Skip to main content

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.1.dll

NuGet Package: DevExpress.Web.Mvc5

Declaration

public LoadContentViaCallback LoadContentViaCallback { get; set; }

Property Value

Type Description
LoadContentViaCallback

One of the LoadContentViaCallback enumeration values.

Available values:

Name Description
None

Specifies that the content is always (initially) rendered inside popup windows.

OnFirstShow

Specifies that loading of popup window contents starts when a popup window is invoked for the first time.

OnPageLoad

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 PopupControl’s callbacks. Use the PopupControlSettingsBase.CallbackRouteValues property to define the callback route values.

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 LoadContentViaCallback property does not influence the PopupControl loading content process if the content is specified via the PopupControlSettingsBase.ContentUrl or PopupWindow.ContentUrl property.

See Also