Responsive and Adaptive Layout in Blazor Dashboard Layout Component

28 Dec 20231 minute to read

The control is provided with built-in responsive support, where panels within the layout get adjusted based on their parent element’s dimensions to accommodate any resolution, which relieves the burden of building responsive dashboards.

The dashboard layout is designed to automatically adapt with lower resolutions by transforming the entire layout into a stacked one. So that, the panels will be displayed in a vertical column. By default, whenever the screen resolution meets 600px or lower resolutions this layout transformation occurs. This transformation can be modified for any user defined resolution by defining the MediaQuery property of the component.

@using Syncfusion.Blazor.Layouts

<SfDashboardLayout CellSpacing="@(new double[]{20 ,20 })" Columns="5" MediaQuery="max-width:700px">
        <DashboardLayoutPanel SizeX=2 SizeY=2 Column=1>
        <DashboardLayoutPanel SizeY=2 Column=3>
        <DashboardLayoutPanel Row=1>

    .e-panel-content {
        text-align: center;
        margin-top: 10px;

Responsive and Adaptive Layout in Blazor DashboardLayout

The above sample demonstrates usage of the MediaQuery property to turn out the layout into a stacked one in user defined resolution. Here, whenever the window size reaches 700px or lesser, the layout becomes a stacked layout.