[Expand]General Information
[Expand]WinForms Controls
[Collapse]ASP.NET Controls and MVC Extensions
 [Expand]What's Installed
 [Expand]Common Concepts
 [Expand]ASP.NET WebForms Controls
 [Collapse]ASP.NET MVC Extensions
  [Expand]Product Information
  [Expand]Getting Started
  [Expand]Common Concepts
  [Expand]Grid View
  [Expand]Tree List
  [Collapse]Card View
    Overview - CardView
    Main Features - Card View
    [Expand]Binding to Data
    [Collapse]Data Representation Basics
      Data Columns
      Unbound Columns
    [Expand]Focus and Navigation
    [Expand]Data Editing and Validation
   [Expand]Member Tables
   [Expand]Visual Elements
  [Expand]Pivot Grid
  [Expand]Rich Text Editor
  [Expand]Site Navigation and Layout
  [Expand]HTML Editor
  [Expand]Vertical Grid
  [Expand]Data Editors Extensions
  [Expand]Docking and Popups
  [Expand]File Management
  [Expand]Data and Image Navigation
  [Expand]Multi-Use Site Extensions
  [Expand]Query Builder
 [Expand]Redistribution and Deployment
  Get More Help
 [Expand]API Reference
[Expand]ASP.NET Bootstrap Controls
[Expand]ASP.NET Core Bootstrap Controls
[Expand]WPF Controls
[Expand]Xamarin Controls
[Expand]Windows 10 App Controls
[Expand]Office File API
[Expand]Report and Dashboard Server
[Expand]eXpressApp Framework
[Expand]CodeRush Classic
[Expand]Cross-Platform Core Libraries
[Expand]Tools and Utilities
 End-User Documentation

Unbound Columns

This topic describes the main concepts of using unbound columns within the CardView extension.

Expanded Unbound Columns Overview

CardView supports both bound and unbound columns. Bound columns obtain their data from a data source. Unbound columns are not bound to any field in a data source. These columns can be populated manually by using the CardViewSettings.CustomUnboundColumnData delegate or by specifying an expression via the CardViewColumn.UnboundExpression used to evaluate values for this field. The Expressions section describes the syntax for creating expressions.

There is no difference between working with bound and unbound columns. You can sort, display summaries and filter unbound columns in the same manner as bound columns.

An unbound column has the following requirements.

  • Its CardViewColumn.FieldName property must be set to a unique value and not refer to any field in the CardView's data source.
  • The column's CardViewColumn.UnboundType property must be set to an appropriate value based on the type of data the column is supposed to display (Boolean, DateTime, Decimal, Integer, String, Object). It should not be set to UnboundColumnType.Bound.

Expanded Providing Data for Unbound Columns

ASP.NET MVC CardView provides two approaches to generate data for unbound columns.

  • Using an Unbound Expression

    To provide unbound columns with data using unbound expressions, compose the expression based on a specific syntax, and assign this expression to the CardViewColumn.UnboundExpression (via MVCxCardViewColumn.UnboundExpression) property.

    The code sample below demonstrates how to add an unbound column that retrieves its data using an unbound expression.

    Partial View code:

  • Using a Delegate Method

    To provide unbound columns with data using a delegate method, assign this delegate method to the CardViewSettings.CustomUnboundColumnData property. The delegate method assigned to this property will be called for unbound columns only.

    The code sample below demonstrates how to add an unbound column that retrieves data using a delegate method.

    Partial View code:


When the CardView extension is bound to a data source in Database Server Mode, you can only enable sorting, filtering and summary calculation for unbound columns that are populated with unbound expressions.

Expanded See Also

Is this topic helpful?​​​​​​​