I have noticed that the Dashboard Layout go out of the page when used with responsive Sidebar. Is there a fix for this? Also, the Sidebar closes when I swipe left on the body of the page. I want to remove this and keep it responsive only through the hamburger menu at the top. Lastly, the Sidebar encroaches into the header as observed in the attached file.
|
<div class="container">
<SfDashboardLayout Columns="2" CellSpacing="@(new double[]{20 ,20 })">
...
<style>
.container{
width: 100%;
height: 100%;
}
</style> |
|
<SfSidebar HtmlAttributes="@HtmlAttribute" Width="290px" Target=".main-content" @ref="Sidebar" MediaQuery="(min-width:600px)"
@bind-IsOpen="SidebarToggle" Type="SidebarType.Over" EnableGestures="false"> |
|
<SfSidebar HtmlAttributes="@HtmlAttribute" Width="290px" Target=".main-content" @ref="Sidebar" MediaQuery="(min-width:600px)"
@bind-IsOpen="SidebarToggle" Type="SidebarType.Over" EnableGestures="false"> |
|
.e-sidebar {
...
margin: 5px;
} |
Hello, we're facing the same problem with the sidebar and the dashboard layout. Is it possible to use the sidebar type "Auto" and the dashboard without the dashboard layout without the dashboard control being displayed larger than the parent container?
Setting the container to width 100% (and max-width 100%) didn't solve the issue
Hi DS,
We have set the Sidebar Type as Auto and to adjust the Dashboard panels within the Main Content area we have adjusted the margin-left CSS style. For your reference, we have attached the modified sample.
|
#main-text .sidebar-content { padding: 15px; margin-left: 275px !important; } |
Sample: https://www.syncfusion.com/downloads/support/directtrac/general/ze/DashboardLayout-939361817
In a similar way, you need to adjust the panels within the Main content area. If issue still persists, please replicate the reported issue in the shared sample. Please get back to us if need any further assistance.
Regards,
Indhumathy L