Skip to main content

DxLayoutBreakpoint.DeviceSize Property

Specifies the device screen size when the breakpoint is activated.

Namespace: DevExpress.Blazor

Assembly: DevExpress.Blazor.v24.1.dll

NuGet Package: DevExpress.Blazor


public DeviceSize DeviceSize { get; set; }

Property Value

Type Default Description
DeviceSize Large

A DeviceSize enumeration value.

Available values:

Name Description

Extra small screens (less than 576px).


Small screens (from 576px to 767px).


Medium screens (from 768px to 992px).


Large screens (from 992px to 1199px).


Extra large screens (1200px or wider).


<DxLayoutBreakpoint DeviceSize="DeviceSize.XSmall" @bind-IsActive="@isXSmallScreen" />

<DxGridLayout CssClass="h-100" ColumnSpacing="8px" RowSpacing="8px">
        @if(isXSmallScreen) {
            <DxGridLayoutRow Areas="item1" />
            <DxGridLayoutRow Areas="item2" />
            <DxGridLayoutRow Areas="item3" />
            <DxGridLayoutRow Areas="item4" />
            <DxGridLayoutRow Areas="item5" />
            <DxGridLayoutRow Areas="item6" />
        } else {
            <DxGridLayoutRow Areas="item1 item3 item5" />
            <DxGridLayoutRow Areas="item1 item4 item5"/>
            <DxGridLayoutRow Areas="item2 item6 item6"/>
        <DxGridLayoutColumn Width="2fr" />
        @if(!isXSmallScreen) {
            <DxGridLayoutColumn />
            <DxGridLayoutColumn />
        <DxGridLayoutItem Area="item1">
                <div class="gridlayout-header gridlayout-item">
                    Item 1
        <DxGridLayoutItem Area="item2">
                <div class="gridlayout-content gridlayout-item">
                    Item 2
        <DxGridLayoutItem Area="item3">
                <div class="gridlayout-left-side-bar gridlayout-item">
                    Item 3
        <DxGridLayoutItem Area="item4">
                <div class="gridlayout-right-side-bar gridlayout-item">
                    Item 4
        <DxGridLayoutItem Area="item5">
                <div class="gridlayout-footer gridlayout-item">
                    Item 5
        <DxGridLayoutItem Area="item6">
                <div class="gridlayout-left-side-bar gridlayout-item">
                    Item 6

@code {
    bool isXSmallScreen;

Adaptive Grid Layout

Run Demo: Grid Layout - Adaptivity

Run Demo: Card View

Watch Video

View Example: How to create an adaptive dashboard layout

See Also