#header-section.main-header {
border-bottom: 1px solid #d2d6de;
height: 55px;
width: 100%;
min-height: 55px;
max-height: 55px; background: #1c86c8;
color: #fff;
position: fixed;
} |
.e-sidebar{
top:50px !important;
position:fixed;
} |
Hi,
By following the above sample ( https://www.syncfusion.com/downloads/support/directtrac/general/ze/SIDEBA~11686362006), i was able to get the SfSidebar up and running.
However, if i turn on the "ShowBackdrop", it seem like the content area is not shown in 100% height which looks a bit odd. May i know is there a way i can make the content area display in full height?
Additionally, may i know from where i can find the list of available icon for SfTreeView so that i could switch to the icon that suit my menu item?
Many thanks.
Regards,
Khor
@code {
protected override void OnInitialized()
{
base.OnInitialized();
treedata.Add(new TreeData { nodeId = "01", nodeText = "Installation", iconCss = "install e-icons" });
treedata.Add(new TreeData { nodeId = "02", nodeText = "Deployment", iconCss = "deploy e-icons" });
treedata.Add(new TreeData { nodeId = "03", nodeText = "Quick Start", iconCss = "quick e-icons" });
treedata.Add(new TreeData { nodeId = "04", nodeText = "Components", iconCss = "components e-icons", hasChild = true });
treedata.Add(new TreeData { nodeId = "04-01", nodeText = "Calendar", iconCss = "components e-icons", pid = "04" });
}
}
<style>
.sidebar-treeview .main-treeview .install::before { content: '\e424';
}
.sidebar-treeview .main-treeview .deploy::before {
content: '\e7a3';
}
.sidebar-treeview .main-treeview .quick::before {
content: '\e848'
}
.sidebar-treeview .main-treeview .components::before {
content: '\e930'
} |
Hi Shalini,
Thanks for the icons library, It is exactly what i looking for.
As for query 1, please refer to below screen before toggle the sidebar. The main content area seem display in full height now.
However, once sidebar is being toggled. Seem only upper part is being "covered" by the backdrop?
Regards,
Khor
As per above code, Can anyone share example for content page which should be responsive when browser is resized or viewed in mobile.
<style>
#main-text .sidebar-content {
padding: 15px;
height:90vh;
}
<\style> |
<SfSidebar HtmlAttributes="@HtmlAttribute" Width="290px" Target=".main-content" @ref="Sidebar" MediaQuery="(min-width:600px)">
<ChildContent>
. . . . </ChildContent>
</SfSidebar> |
still issue in content page.
please check my comments in below video
https://www.screencast.com/t/ruWtlrJKt
Hi Shalini,
Referring to query 1 (Once sidebar is being toggled. Seem only upper part is being "covered" by the backdrop), may i know is there a way to make the height automatically fit the screen?
Reason being different user may have different screen size (some use big monitor, some use smaller tablet), by setting the height/ min-height manually, it will fit in some device.
Regards,
Khor
<style>
#wrapper .col-lg-12.col-sm-12.col-md-12 { padding: 0px;
} </style> |
Hi,
When i downloaded sample code "SIDEBA_11686362006". the version of Syncfusion.Blazor - 18.1.0.54
which is the code for expand menu that works perfect. that has
public ExpandOnSettings Expand = ExpandOnSettings.Click;
When upgraded to 20.1.0.61 sample code then" ExpandOnSettings " no more works, alternate " ExpandAction ".
After change the code as per the same " Example of Responsive Panel in Blazor Sidebar Component" as per
Menu is overlapping the main content. you ca see he screenshot attached
Thanks
Hari
Attachment: Sidebar_Issue_b699546b.zip
Hi Hari,
We have updated your previous shared sample to the latest version (20.1.61) to render the Sidebar component. As mentioned, you need to use ExpandAction to expand the nodes based on click. However, we are unable to reproduce the issue you are reporting with the Sidebar overlapping the main content on our end. Please see the link below for the latest updated sample.
https://www.syncfusion.com/downloads/support/directtrac/general/ze/BLAZOR~1868276200
Whether have you set Type property as over for the Sidebar component? If the issue still persists, reproduce the issue in the shared sample to further validate the issue.
Regards,
Indhumathy L