Skip to content

DevExpress-Examples/xaf-how-to-use-tree-list-editors-to-display-list-views

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

44 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

XAF - How to Use Tree List Editors to Display List Views For ASP.NET Core Blazor And Windows Forms

ASP.NET Core Blazor:

This example describes how to use a tree list control to show hierarchical data in an XAF ASP.NET Core Blazor applications. The example uses the DxTreeListEditor. If you implement the ITreeNode interface in a business object class, the DxTreeListEditor automatically displays the hierarchical data.

image

Windows Forms

This example describes how to use a tree list control to show hierarchical data in an XAF Windows Forms applications. For this purpose, the example uses the TreeListEditor and CategorizedListEditor supplied with the TreeListEditorsWindowsFormsModule.

image

Implementation Details

The example uses the following techniques:

  1. A List View that defines objects of a type that implements the ITreeNode interface. XAF uses the TreeListEditor to display this View.

    Files to review:

    For more information, refer to the following help topics: TreeList Editors Module and Display a Tree List using the ITreeNode interface.

    NOTE

    Windows Forms only — In ASP.NET Core Blazor, XAF uses DxTreeListEditor when ITreeNode is implemented. You do not need to add a separate module to your project.

  2. A List View that defines objects of a type that implements the ICategorizedItem interface. XAF uses the CategorizedListEditor to display this View.

    NOTE

    This is valid only for XAF Windows Forms applications. XAF ASP.NET Core Blazor does not support the CategorizedListEditor.

    Files to review:

    • The Issue class
    • The CategoryWithIssues class that is related to the previous class by a One-to-Many relationship.

    For details, refer to the following topic: Categorized List.

  3. A List View that defines objects of the HCategory type supplied with the Business Class Library. XAF uses the TreeListEditor to display this View. To add the HCategory class to the application's business model, use the following technique: Ways to Add a Business class.

    For more information, refer to the following topic: Display a Tree List using the HCategory class.

Files to Review

Documentation

Does this example address your development requirements/objectives?

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