You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
title: Resizing Panels in Blazor Dashboard Layout Component | Syncfusion
4
-
description: Checkout and learn here all about resizing panels in Syncfusion Blazor Dashboard Layout component and more.
3
+
title: Size and Position in Blazor Dashboard Layout Component | Syncfusion
4
+
description: Checkout and learn here all about size and position in Syncfusion Blazor Dashboard Layout component and more.
5
5
platform: Blazor
6
6
control: Dashboard Layout
7
7
documentation: ug
8
8
---
9
9
10
-
# Resizing Panels in Blazor Dashboard Layout Component
10
+
# Size and Position of Panels in Blazor Dashboard Layout Component
11
11
12
-
The Dashboard Layout component provides panel resizing functionality, which can be enabled or disabled using the [`AllowResizing`](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Layouts.SfDashboardLayout.html#Syncfusion_Blazor_Layouts_SfDashboardLayout_AllowResizing) property. This feature allows users to dynamically adjust panel dimensions through UI interactions using various resizing handlers.
12
+
Panels are fundamental building blocks within the Blazor Dashboard Layout component, serving as containers for data visualization and presentation.
13
+
14
+
Panels are fundamental building blocks within the Blazor Dashboard Layout component, serving as containers for data visualization and presentation.
| <kbd>Id</kbd> | null | Specifies the ID value of the panel. |
19
+
| <kbd>Row</kbd> | 0 | Specifies the row value in which the panel to be placed. |
20
+
| <kbd>Column</kbd> | 0 | Specifies the column value in which the panel to be placed. |
21
+
| <kbd>SizeX</kbd> | 1 | Specifies the width of the panel in cells count. |
22
+
| <kbd>SizeY</kbd> | 1 | Specifies the height of the panel in cells count. |
23
+
| <kbd>MinSizeX</kbd> | 1 | Specifies the minimum width of the panel in cells count. |
24
+
| <kbd>MinSizeY</kbd> | 1 | Specifies the minimum height of the panel in cells count. |
25
+
| <kbd>MaxSizeX</kbd> | null | Specifies the maximum width of the panel in cells count. |
26
+
| <kbd>MaxSizeY</kbd> | null | Specifies the maximum height of the panel in cells count. |
27
+
| <kbd>HeaderTemplate</kbd> | null | Specifies the header template of the panel. |
28
+
| <kbd>ContentTemplate</kbd> | null | Specifies the content template of the panel. |
29
+
| <kbd>CssClass</kbd> | null | Specifies the CSS class name that can be appended with each panel element.|
30
+
31
+
## Positioning of Panels
32
+
33
+
Panels within the layout can be precisely positioned and ordered using the [`Row`](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Layouts.DashboardLayoutPanel.html#Syncfusion_Blazor_Layouts_DashboardLayoutPanel_Row) and [`Column`](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Layouts.DashboardLayoutPanel.html#Syncfusion_Blazor_Layouts_DashboardLayoutPanel_Column) properties of each `DashboardLayoutPanel`. This capability is essential for arranging data in any desired layout or order.
The following screenshot illustrates panel positioning within the Dashboard Layout, utilizing the `Row` and `Column` properties:
74
+
75
+

76
+
77
+
## Sizing of Panels
78
+
79
+
A panel's size can be easily adjusted by defining its [`SizeX`](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Layouts.DashboardLayoutPanel.html#Syncfusion_Blazor_Layouts_DashboardLayoutPanel_SizeX) and [`SizeY`](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Layouts.DashboardLayoutPanel.html#Syncfusion_Blazor_Layouts_DashboardLayoutPanel_SizeY) properties.
80
+
81
+
*`SizeX`: Defines the width of a panel in cells count.
82
+
*`SizeY`: Defines the height of a panel in cells count.
83
+
84
+
These properties are invaluable when designing dashboards where the content and layout of each panel may vary significantly in size, allowing for flexible and responsive designs.

124
+
The following screenshot demonstrates the sizing of panels within the Dashboard Layout, using the `SizeX` and `SizeY` properties:
47
125
48
-
N> Initially, the panels can be resized only in south-east direction. However, panels can also be resized in east, west, north, south, and south-west directions by defining the required directions with the [`ResizableHandles`](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Layouts.SfDashboardLayout.html#Syncfusion_Blazor_Layouts_SfDashboardLayout_ResizableHandles) property.
126
+

0 commit comments