Back to Devexpress

ASPxCardViewSettings.LayoutMode Property

aspnet-devexpress-dot-web-dot-aspxcardviewsettings-ded57f72.md

latest2.6 KB
Original Source

ASPxCardViewSettings.LayoutMode Property

Gets or sets the current layout mode for the ASPxCardView.

Namespace : DevExpress.Web

Assembly : DevExpress.Web.v25.2.dll

NuGet Package : DevExpress.Web

Declaration

csharp
[DefaultValue(Layout.Table)]
public Layout LayoutMode { get; set; }
vb
<DefaultValue(Layout.Table)>
Public Property LayoutMode As Layout

Property Value

TypeDefaultDescription
LayoutTable

A Layout enumerator value that specifies the current layout mode.

|

Available values:

NameDescription
Table

Data items are displayed using the fixed table layout with the specified column and row count.

| | Flow |

Data items flow one after another, to fill the available page area.

| | Breakpoints |

Organizes items according to custom layout scenarios for different browser widths.

|

Property Paths

You can access this nested property as listed below:

LibraryObject TypePath to LayoutMode
ASP.NET MVC ExtensionsCardViewSettings

.Settings .LayoutMode

| | ASP.NET Web Forms Controls | ASPxCardView |

.Settings .LayoutMode

|

Remarks

The LayoutMode property allows you to choose a layout mode for the ASPxCardView.

aspx
...
<Styles FlowCard-Height="260" />
...

Note

  • The ASPxCardView does not allows end users to group cards if the control is in table layout mode (ASPxCardView1.Settings.LayoutMode = LayoutMode.Table)

  • Cards have fixed height (specified in the .dxcvFlowCard_<ThemeName> CSS selector) when the control is in Layout.Flow layout mode. Use the ASPxCardView.Styles.FlowCard.Height (CardViewCardStyle.Height) property to set a custom card’s height in this mode.

See Also

ASPxCardViewSettings Class

ASPxCardViewSettings Members

DevExpress.Web Namespace