DockPanelSettings.LoadContentViaCallback Property

Gets or sets a value specifying the content loading mode for the DockPanel.

Namespace: DevExpress.Web.Mvc

Assembly: DevExpress.Web.Mvc5.v20.1.dll


public LoadPanelContentViaCallback LoadContentViaCallback { get; set; }
Public Property LoadContentViaCallback As LoadPanelContentViaCallback

Property Value

Type Description

One of the LoadPanelContentViaCallback enumeration values.


Use the LoadContentViaCallback property to control when a panel's contents should be loaded.


To enable loading content via callback, it is necessary to define route values to the controller and the action that will handle DockPanel's callbacks. Use the PopupControlSettingsBase.CallbackRouteValues (via DockPanelSettings.CallbackRouteValues) property to define the callback route values.

Using the postponed load of panel contents (by setting the LoadContentViaCallback property to LoadPanelContentViaCallback.OnPageLoad or LoadPanelContentViaCallback.OnFloating), you can enhance the response time of your web page on its initial load.

You can load panel contents every time the panel is docked (LoadPanelContentViaCallback.OnDock), undocked (LoadPanelContentViaCallback.OnFloating), or on every dock state change (LoadPanelContentViaCallback.OnDockStateChange).

Note that you can also update the content of panels programmatically, on demand (by using the client ASPxClientPopupControlBase.PerformCallback method). On-demand panel loading is realized by sending a callback to the server for the panel's content. During a callback, a specific loading panel can be displayed within the panel.

See Also