Side bar height not 100%
Attachment: MainLayout_528560c8.zip
|
#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
Query#1: if i turn on the "ShowBackdrop", it seem like the content area is not shown in 100% height which looks a bit odd.
Video demo: https://www.syncfusion.com/downloads/support/directtrac/general/ze/Sidebar_height362444792.zip
If we have misunderstood your query, please elaborate on your requirement in detail with video demonstration(if possible) in order to understand it better. So that we can check from our end and provide the prompt solution.
Query#2: 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?
We have validated your query and you can change the icons by setting the required icon value in the content property .
Please check the below link for details on our icons library for various icons.
Please refer to the below code snippet,
|
@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'
} |
Screenshot:
Please find the below sample for your reference.
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.
Thanks for the update.
Query#1: once sidebar is being toggled. Seem only upper part is being "covered" by the backdrop?
We have validated your query. To overcome the reported issue, we suggest you to set the min-height property to the Sidebar main content as demonstrated in the below code snippet,
|
<style>
#main-text .sidebar-content {
padding: 15px;
height:90vh;
}
<\style> |
Screenshot:
Note: The min height value in the above sample has to be modified based on your application to meet your required height.
Please find the below sample for your reference,
Query#2: Can anyone share example for content page which should be responsive when browser is resized or viewed in mobile.
Based on your query, we could understand that your requirement is to make the Sidebar responsive. You can achieve your requirement by using the MediaQuery property. The MediaQuery allows you to set the Sidebar in an expanded state or collapsed state only in user-defined resolution. Please refer to the below code snippet,
|
<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
Attachment: Sidebar_Treeview_464eacfe.zip
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
Thanks for the update.
Query#1: Space in the left side of Sidebar
|
<style>
#wrapper .col-lg-12.col-sm-12.col-md-12 { padding: 0px;
} </style> |
Query #2: may i know is there a way to make the height automatically fit the screen?
Please get back to us if you need any further assistance with Syncfusion components.
Regards,
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
- 15 Replies
- 8 Participants
-
BJ Ben Junior
- Apr 23, 2020 08:51 PM UTC
- Jun 28, 2022 01:35 PM UTC