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.
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.
The example uses the following techniques:
-
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:
- The Category class.
- The
Category
class' descendants: ProjectGroup, Project, and ProjectArea
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
whenITreeNode
is implemented. You do not need to add a separate module to your project. -
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.
-
A List View that defines objects of the
HCategory
type supplied with the Business Class Library. XAF uses theTreeListEditor
to display this View. To add theHCategory
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.
- Layout - There are circumstances that cause the "Error creating window handle" error to occur when you alter the MasterDeailMode option.
- TreeList Editors Module
- Display a Tree List using the ITreeNode interface
(you will be redirected to DevExpress.com to submit your response)