Skip to content

Display persistent objects in a non-persistent object's view in your XAF ASP.NET Core Blazor application.

License

Notifications You must be signed in to change notification settings

DevExpress-Examples/xaf-how-to-show-persistent-objects-in-a-non-persistent-objects-view

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

43 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

XAF - How to show persistent objects in a non-persistent object's view

This example demonstrates how to declare a collection property of a persistent type in a non-persistent class and display it in the UI.

image

Implementation Details

  1. Create a non-persistent class that implements entry fields and use PopupWindowShowAction to display a Detail View of the class instance in a pop-up window.
  2. Extend the class with a collection property that allows user to select items from a list. To read the selection in the Action's Execute event, access the ListPropertyEditor that is the nested List View.
  3. Handle the ObjectSpaceCreated event to create an ObjectSpace that can handle persistent objects (the collection property you added). Review the following documentation article for additional information: How to: Show Persistent Objects in a Non-Persistent Object's View
  4. The pop-up window invoked by the PopupWindowShowAction contains the OK and Cancel buttons implemented in the DialogController. To add other Actions, create a controller for the dialog class and set the Category to PopupActions.

Files to Review

Documentation

Does this example address your development requirements/objectives?

(you will be redirected to DevExpress.com to submit your response)

Releases

No releases published

Packages

No packages published