We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
close icon

Maintain the cellAspectRatio while resizing and Add new Panel to the first available position.

I have few questions about the feature available in this component.
  1. Is it possible to maintain the cellAspectRatio while resizing the Panel?
  2. Is it possible to add the new Panel to first available position where the new panel can fit in left to right fashion?
Thanks.

1 Reply

KR Keerthana Rajendran Syncfusion Team November 29, 2019 10:48 AM UTC

Hi Sagar, 
 
Greetings from Syncfusion support.  
Query1 – cellAspectRatio is maintained during resizing. 
We would like to let you know that the Dashboard Layout is a grid structured component which can be split into columns of equal size known as cells .The, width of each cell is calculated based on the total number of columns in a row and height of these cells can be configured using the cellAspectRatio property (cellwidth/cellheight ratio) which defines the cell width to height ratio. Whereas resizing a panel just allows you to resize the panels to occupy these cells and is completely different from cellApsectRatio property of the component. So, there is no possibilities to resize the panels based on cellAspectRatio property.  
If this is not your requirement or if we misunderstand your requirement, can you please share your exact requirement. It will helpful for us to resolve your issue at earlier.  
Query 2 – Add panel from left to right. 
When you add the dashboard layout panel in first position, and if the very next column in that row is empty and is adaptable for the already available panels, the panel will move in left to right fashion. If  this column is occupied, then the panel will get pushed in the downward direction and the newly added panel get placed from top to bottom fashion, it is the default behavior of dashboard layout. 
 
 
Please let us know, if you have any concerns. 
 
 
Regards, 
Keerthana.  


Loader.
Live Chat Icon For mobile
Up arrow icon