Resizing of panels
18 Nov 20181 minute to read
The DashboardLayout control is also provided with the panel resizing functionality which can be enabled or disabled using the allowResizing property. This functionality allows you to resize the panels dynamically through UI interactions using the resizing handlers, which controls the panel resizing in various directions.
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 property.
On resizing a panel in Dashboard Layout the following events will be triggered,
- resizeStart - Triggers when panel resize starts
- resize - Triggers when panel is being resized
- resizeStop - Triggers when panel resize stops
Resizing panels programatically
The Dashboard Layout panels can also be resized programatically by using resizePanel method. The method is invoked as follows,
resizePanel(id, sizeX, sizeY)Where,
-
id- ID of the panel which needs to be resized. -
sizeX- New panel width in cells count for resizing the panel. -
sizeY- New panel height in cells count for resizing the panel.
The following sample demonstrates resizing panels programatically in the Dashboard Layout’s created event.
NOTE
You can refer to our ASP.NET Core Dashboard Layout feature tour page for its groundbreaking feature representations. You can also explore our ASP.NET Core Dashboard Layout example to know how to present and manipulate data.