Back to Devexpress

CollectionSourceBase.DataAccessMode Property

expressappframework-devexpress-dot-expressapp-dot-collectionsourcebase-379f329c.md

latest4.9 KB
Original Source

CollectionSourceBase.DataAccessMode Property

Gets the mode used to access the CollectionSourceBase‘s collection.

Namespace : DevExpress.ExpressApp

Assembly : DevExpress.ExpressApp.v25.2.dll

NuGet Package : DevExpress.ExpressApp

Declaration

csharp
public CollectionSourceDataAccessMode DataAccessMode { get; }
vb
Public ReadOnly Property DataAccessMode As CollectionSourceDataAccessMode

Property Value

TypeDescription
CollectionSourceDataAccessMode

A CollectionSourceDataAccessMode enumeration value that specifies the mode used to access the Collection Source’s CollectionSourceBase.Collection.

|

Available values:

NameDescription
Client

The entire record set required for the current List View is loaded into memory. All the data processing takes place on the client side.

| | Server |

Data is requested from a data store in small portions that should currently be displayed. All data-aware operations are performed on the data server side.

| | DataView |

A lightweight read-only list of data records (DevExpress.ExpressApp.EFCore.EFCoreDataView or XPView) is retrieved without loading complete persistent objects.

| | InstantFeedback |

A List View’s control continues responding to a user’s actions while the data is being retrieved in a background thread (see Instant Feedback Mode).

| | InstantFeedbackView |

A lightweight read-only list of data records (ObjectRecord) is retrieved without loading complete persistent objects. A List View’s control continues responding to a user’s actions while the data is being retrieved in a background thread.

| | ServerView |

A lightweight read-only list of data records (ObjectRecord) is retrieved without loading complete persistent objects. Data is requested from a data store in small portions that should currently be displayed.

| | Queryable |

The collection source constructs a query that the List Editor can modify to load only objects visible in the control. Only DevExpress.ExpressApp.Blazor.Editors.Grid.GridListEditor [deprecated] supports this mode.

|

Remarks

When you create a Collection Source in code, you can initialize the DataAccessMode property using a constructor with the dataAccessMode parameter. To set this property to the required value in the Model Editor, use the IModelListView.DataAccessMode property of the Views | <ListView> node corresponding to the List View for which the current Collection Source is created.

Refer to the following topics for detailed descriptions of the available data access modes:

See Also

IsRoot

Large Data Sources: Server and Instant Feedback Modes

Bind Grid View to Large Data (XPO)

CollectionSourceBase Class

CollectionSourceBase Members

DevExpress.ExpressApp Namespace