Skip to main content
.NET Framework 4.6.2+
  • The page you are viewing does not exist in the .NET 8.0+ platform documentation. This link will take you to the parent topic of the current section.

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

PopupWindow.RefreshParentWindowMode Property

Specifies whether and when a parent window of this pop-up window should be refreshed.

Namespace: DevExpress.ExpressApp.Web

Assembly: DevExpress.ExpressApp.Web.v24.2.dll

NuGet Package: DevExpress.ExpressApp.Web

#Declaration

public RefreshParentWindowMode RefreshParentWindowMode { get; set; }

#Property Value

Type Description
RefreshParentWindowMode

The RefreshParentWindowMode value that specifies whether and when a parent window of this pop-up window should be refreshed. The default value is OnAccept.

Available values:

Name Description
None

PopupWindow‘s parent window should not be refreshed after closing the pop-up window.

OnAccept

PopupWindow‘s parent window should be refreshed after clicking the pop-up window’s Accept button.

OnCancel

PopupWindow‘s parent window should be refreshed after clicking the pop-up window’s Cancel button.

#Remarks

The following example shows how to specify this property:

using DevExpress.ExpressApp;
using DevExpress.ExpressApp.Web;
// ...
public class MyController : ViewController {
    protected override void OnActivated() {
        base.OnActivated();
        PopupWindow popupWindow = Frame as PopupWindow;
        if (popupWindow != null) {
            popupWindow.RefreshParentWindowMode = 
                RefreshParentWindowMode.OnAccept | RefreshParentWindowMode.OnCancel;
        }
    }
}
See Also