Umbraco UI Builder
CMSCloudHeartcoreDXP
14.latest
14.latest
  • Umbraco UI Builder Documentation
  • Known Issues
  • Release Notes
  • Installation
    • Installing Umbraco UI Builder
    • Licensing
  • Upgrading
    • Upgrading Umbraco UI Builder
    • Version Specific Upgrade Notes
    • Migrate from Konstrukt to Umbraco UI Builder
  • Getting Started
    • Overview
    • Configuration
    • User Interface
  • How-to Guides
    • Creating your first integration
  • Areas
    • Overview
    • Sections
      • Summary Dashboards
    • Trees
      • Folders
    • Dashboards
    • Context Apps
  • Collections
    • Overview
    • The Basics
    • List Views
      • Field Views
    • Editors
    • Child Collections
      • Child Collection Groups
      • Retrieve Child Collections
    • Related Collections
  • Searching
    • Overview
    • Searchable Properties
  • Filtering
    • Overview
    • Global Filters
    • Data Views
      • Data Views Builders
    • Filterable Properties
  • Actions
    • Overview
    • The Basics
    • Action Visibility
    • Inbuilt Actions
  • Cards
    • Overview
    • Count Cards
    • Custom Cards
  • Property Editors
    • Overview
    • Entity Picker
  • Advanced
    • Virtual Sub Trees
    • Encrypted Properties
    • Value Mappers
    • Repositories
    • Events
  • Miscellaneous
    • Conventions
    • Umbraco Aliases
Powered by GitBook
On this page
  • Defining data views
  • AddDataView(string name, Lambda whereClauseExpression) : CollectionConfigBuilder<TEntityType>
  • AddDataView(string group, string name, Lambda whereClauseExpression) : CollectionConfigBuilder<TEntityType>

Was this helpful?

Edit on GitHub
Export as PDF
  1. Filtering

Data Views

Configuring data views in Umbraco UI Builder, the backoffice UI builder for Umbraco.

PreviousGlobal FiltersNextData Views Builders

Last updated 11 months ago

Was this helpful?

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.

Defining data views

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.

// Example
collectionConfig.AddDataView("Active", p => p.IsActive);

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.

// Example
collectionConfig.AddDataView("Status", "Active", p => p.IsActive);

Data views are defined via the configuration.

collections
Data Views