XafApplication.CreateListEditor(CollectionSourceBase, IModelListView) Method
Creates the List Editor which is specified in the appropriate Application Model node.
Namespace: DevExpress.ExpressApp
Assembly: DevExpress.ExpressApp.v24.2.dll
NuGet Package: DevExpress.ExpressApp
#Declaration
public ListEditor CreateListEditor(
CollectionSourceBase collectionSource,
IModelListView modelListView
)
#Parameters
Name | Type | Description |
---|---|---|
collection |
Collection |
A Collection |
model |
IModel |
An IModel |
#Returns
Type | Description |
---|---|
List |
An appropriate List Editor. |
#Remarks
This method creates the List Editor of the type specified by the IModelListView.EditorType property of the Views | <ListView> node which is passed as the info parameter. If the List View cannot be created, an exception is raised.
A List Editor can implement the IComplexListEditor and/or IProtectedContentEditor interface. If the IComplexListEditor interface is implemented, its Setup method is called. If the IProtectedContentEditor interface is implemented, its ProtectedContentText property is set to the Application node’s IModelApplication.ProtectedContentText property value.
You may need to use this method if a custom Property Editor displays its value via a List View. In this instance, use the List View’s constructor with the listEditor parameter (see XafApplication.CreateListView).