Coder Social home page Coder Social logo

flacersoft / xaf-how-to-show-persistent-objects-in-a-non-persistent-objects-view Goto Github PK

View Code? Open in Web Editor NEW

This project forked from devexpress-examples/xaf-how-to-show-persistent-objects-in-a-non-persistent-objects-view

0.0 0.0 0.0 232 KB

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

License: Other

C# 73.78% HTML 26.22%

xaf-how-to-show-persistent-objects-in-a-non-persistent-objects-view's Introduction

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

xaf-how-to-show-persistent-objects-in-a-non-persistent-objects-view's People

Contributors

andreykozhevnikov avatar anastasiakiseleva avatar dxmi avatar devexpressexamplebot avatar nikolaevairina avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.