Data Views
Configuring data views in Umbraco UI Builder, the backoffice UI builder for Umbraco.
Data views allow you to define multiple, pre-filtered views of the same data source. This can be useful when entities exist in different states and you want a way to toggle between them.
![](https://docs.umbraco.com/~gitbook/image?url=https%3A%2F%2F2148771530-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FgoLTJtSK3i4BWuhwRolv%252Fuploads%252Fgit-blob-19398c19797b8977c3b11b684ba23130da8b1331%252Fdata_views.png%3Falt%3Dmedia&width=768&dpr=4&quality=100&sign=b1e1cd65&sv=1)
Defining data views
Data views are defined via the collections configuration.
AddDataView(string name, Lambda whereClauseExpression) : CollectionConfigBuilder<TEntityType>
Adds a data view with the given name and where clause filter expression. Expression must be a boolean
expression.
AddDataView(string group, string name, Lambda whereClauseExpression) : CollectionConfigBuilder<TEntityType>
Adds a data view with the given group, name and where clause filter expression. Expression must be a boolean
expression.
Last updated