Back to Devexpress

ASPxCardViewPagerSettings.SettingsBreakpointsLayout Property

aspnet-devexpress-dot-web-dot-aspxcardviewpagersettings.md

latest3.1 KB
Original Source

ASPxCardViewPagerSettings.SettingsBreakpointsLayout Property

Provides access to the Card View’s Breakpoint layout mode settings.

Namespace : DevExpress.Web

Assembly : DevExpress.Web.v25.2.dll

NuGet Package : DevExpress.Web

Declaration

csharp
public CardViewBreakpointsLayoutSettings SettingsBreakpointsLayout { get; }
vb
Public ReadOnly Property SettingsBreakpointsLayout As CardViewBreakpointsLayoutSettings

Property Value

TypeDescription
CardViewBreakpointsLayoutSettings

A CardViewBreakpointsLayoutSettings object containing the Card View’s Breakpoint layout mode settings.

|

Property Paths

You can access this nested property as listed below:

LibraryObject TypePath to SettingsBreakpointsLayout
ASP.NET MVC ExtensionsCardViewSettings

.SettingsPager .SettingsBreakpointsLayout

| | ASP.NET Web Forms Controls | ASPxCardView |

.SettingsPager .SettingsBreakpointsLayout

|

Remarks

Use the SettingsBreakpointsLayout property to access the Card View settings related to the Breakpoints layout mode (the ASPxCardViewSettings.LayoutMode property is set to Layout.Breakpoints).

The following example illustrates how to implement three different layout scenarios for different browser sizes (Small, Medium, Large):

csharp
CardView.Settings.LayoutMode = Layout.Breakpoints;
CardView.SettingsAdaptivity.BreakpointsLayoutSettings.CardsPerRow = 5;

CardView.SettingsAdaptivity.BreakpointsLayoutSettings.Breakpoints.AddRange(new List<CardViewBreakpoint>() {
    new CardViewBreakpoint() { DeviceSize = BreakpointsLayoutDeviceSizes.Small, CardsPerRow = 3 },
    new CardViewBreakpoint() { DeviceSize = BreakpointsLayoutDeviceSizes.Custom, MaxWidth = 1300, CardsPerRow = 4 },   
});

Concept

Online Demo

Card View - Adaptive Layout

See Also

ASPxCardViewPagerSettings Class

ASPxCardViewPagerSettings Members

DevExpress.Web Namespace