List Editors
- 4 minutes to read
List Views are visualized by means of List Editors. A List Editor has a control that is used to display an object collection supplied by a List View. A List Editor handles the binding of its control and supports interaction between the List View and the control. By default, certain List Editors are used for all the List Views. You can change the List Editors used in a default UI, or customize them. This topic explains how to do this, and defines available List Editor types. For information on how to implement your own List Editor, refer to the ListEditor class description.
List Editors are abstract UI entities represented by ListEditor class descendants. The ListEditor class declares members common to all the List Editors. These members define the basic List Editor functionality. To create actual controls, each List Editor type overrides the protected CreateControlCore method which is called when a List Editor needs to be displayed in a UI. Since different controls are used in WinForms, ASP.NET and Mobile applications, there are different List Editors implemented for a WinForm, ASP.NET Web and Mobile UI, respectively. The following tables list the basic List Editors supplied by eXpressApp Framework. For use in WinForms applications:
Name | Description |
---|---|
GridListEditor | Used by default in XAF WinForms applications. Provides the most common data representation in the form of a two-dimensional table. |
CategorizedListEditor | Implemented in the TreeList Editors module. Displays data in the form of a two-dimensional table accompanied by the category tree. |
ChartListEditor | Implemented in the Chart Module. Displays data in the form of a chart. |
PivotGridListEditor | Implemented in the Pivot Grid Module. Displays data in the form of a pivot table that can be accompanied by a chart. |
SchedulerListEditor | Implemented in the Scheduler module. Designed to present and manage scheduling information in XAF WinForms applications. |
TreeListEditor | Implemented in the TreeList Editors module. Displays data in the form of a tree-like structure. |
In ASP.NET Web applications:
Name | Description |
---|---|
ASPxGridListEditor | Used by default in XAF ASP.NET applications. Provides the most common data representation in the form of a two-dimensional table. |
ASPxChartListEditor | Implemented in the Chart Module. Displays data in the form of a chart. |
ASPxPivotGridListEditor | Implemented in the Pivot Grid Module. Displays data in the form of a pivot table that can be accompanied by a chart. |
ASPxSchedulerListEditor | Implemented in the Scheduler module. Designed to present and manage scheduling information in XAF ASP.NET Web applications. |
ASPxTreeListEditor | Implemented in the TreeList Editors module. Displays data in the form of a tree-like structure. |
WebMapsListEditor | Implemented in the Maps Module. Displays data in the form of a map with markers in XAF ASP.NET applications. |
In Mobile applications:
Name | Description |
---|---|
MobileListEditor | Used by default in XAF Mobile applications. Provides the most common data representation in the form of a list. |
MobileMapsListEditor | Implemented in the Maps Module. Displays data in the form of a map with markers in XAF Mobile applications. |
Customize List Editors
This section contains the most common ways to customize List Editors.
Change the List Editor for a particular List View
In the Model Editor, navigate to the Views | <ListView> node and set the EditorType property to the required List Editor’s type:
Change the default List Editor for all List Views
In the Model Editor, navigate to the Views node and set the DefaultListEditor property to the required List Editor’s type:
Customize a particular List Editor’s control
The examples below demonstrate how to customize a List Editor’s control:
Access Grid Control Properties
How to: Access the List Editor’s Control
How to: Configure Bands in a Grid List Editor (WinForms and ASP.NET)
How to: Edit a Reference Property in the Batch Edit Mode
How to: Extend the Application Model
How to: Hide the Edit Action Column from a ListView in an ASP.NET Application
How to: Specify the Map Center Using Human-Readable Location Instead of Numeric Coordinates
Implement a custom List Editor
You can use a custom List Editor if XAF’s built-in List Editors do not meet your requirements. The following articles describe how to create a List Editor and use it to implement additional functionality:
How to Access XafApplication and Collection Source from a custom List Editor
How to: Implement a Custom WinForms List Editor
How to: Support a Context Menu for a Custom WinForms List Editor
How to: Implement an ASP.NET Web List Editor Using a Custom Control