Back to Devexpress

How to: Create and Show a Detail View of the Selected Object in a Popup Window (ASP.NET Core Blazor)

expressappframework-118760-ui-construction-views-ways-to-show-a-view-how-to-create-and-show-a-detail-view-of-the-selected-object-in-a-popup-window.md

latest1.7 KB
Original Source

How to: Create and Show a Detail View of the Selected Object in a Popup Window (ASP.NET Core Blazor)

  • Jan 05, 2024
  • 2 minutes to read

This topic demonstrates how to create and show a Detail View of the List View’s selected object in a pop-up window.

Note

To follow the steps below, you can use the MainDemo application installed as a part of the XAF package. The default location of the application is %PUBLIC%\Documents\DevExpress Demos 25.2\Components\XAF.

  1. In the MainDemo.Blazor.Server\Controllers folder, create a new View Controller.

  2. In the Controller, create a PopupWindowShowAction and handle its PopupWindowShowAction.CustomizePopupWindowParams event as shown in the following code snippet:

  3. Save the changes, build the project, and run the application.

Tip

The pop-up window uses a separate Object Space and displays the Save Action that allows users to explicitly commit changes. You can use any of the following options to customize this behavior:

  • Call the CreateDetailView method overload with the isRoot parameter.
  • Access a nested or existing Object Space instead of a new one.

For more information, refer to the following topic: View.IsRoot.

See Also

Ways to Show a View