This example demonstrates how to declare a collection property of a persistent type in a non-persistent class and display it in the UI.
- 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.
- 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 theListPropertyEditor
that is the nested List View. - Handle the
ObjectSpaceCreated
event to create anObjectSpace
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 - 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
toPopupActions
.
(you will be redirected to DevExpress.com to submit your response)