Dear Syncfusion,
I have updated my Syncfusion.Blazor from Version 18.4.0.48 to Version 19.3.0.47 but I am getting an un wanted scroll bar on my system as I have shown you in the images attached and video here .
I would like to know how this can be fixed.
Thank You
|
@using Syncfusion.Blazor.Navigations
<div class="mydiv"></div>
<div style="float:right">
<SfMenu TValue="MenuItem">
<MenuItems>
<MenuItem Text="File">
<MenuItems>
<MenuItem Text="Open"></MenuItem>
<MenuItem Text="Save"></MenuItem>
<MenuItem Text="Exit"></MenuItem>
</MenuItems>
</MenuItem>
<MenuItem Text="Edit">
<MenuItems>
<MenuItem Text="Cut"></MenuItem>
<MenuItem Text="Copy"></MenuItem>
<MenuItem Text="Paste"></MenuItem>
</MenuItems>
</MenuItem>
<MenuItem Text="View">
<MenuItems>
<MenuItem Text="Toolbars"></MenuItem>
<MenuItem Text="Zoomr"></MenuItem>
<MenuItem Text="Full Screen"></MenuItem>
</MenuItems>
</MenuItem>
<MenuItem Text="Tools">
<MenuItems>
<MenuItem Text="Spelling & Grammar"></MenuItem>
<MenuItem Text="Customize"></MenuItem>
<MenuItem Text="Options"></MenuItem>
</MenuItems>
</MenuItem>
<MenuItem Text="Go"></MenuItem>
<MenuItem Text="Help"></MenuItem>
</MenuItems>
</SfMenu>
</div>
<style>
.mydiv{
width:1900px;
height:20px;
background-color:aquamarine;
}
</style>
|
Thank You Aravinthan.
However, I am still facing the issue. I have attached my code here in which I am facing the issue under the Utilities Menu.
You realize in your code sample shared with me , the bug still exists. Please check the video recording I have attached here showing how your shared sample code appears with that bottom scrollbar
Please download my project code where I am facing the problem. Thank You.
Thank You very much.
I will be waiting for an update on 10th November 2021.
|
@using Syncfusion.Blazor.Navigations
<div class="mydiv">
<SfMenu TValue="MenuItem">
<MenuItems>
<MenuItem Text="View">
<MenuItems>
<MenuItem Text="Toolbars"></MenuItem>
<MenuItem Text="Zoomr"></MenuItem>
<MenuItem Text="Full Screen"></MenuItem>
</MenuItems>
</MenuItem>
<MenuItem Text="Tools">
<MenuItems>
<MenuItem Text="Spelling & Grammar"></MenuItem>
<MenuItem Text="Customize"></MenuItem>
<MenuItem Text="Options"></MenuItem>
</MenuItems>
</MenuItem>
<MenuItem Text="Go"></MenuItem>
<MenuItem Text="Help"></MenuItem>
</MenuItems>
</SfMenu>
</div>
<style>
.mydiv {
min-width: 100%;
background-color: #3498db;
}
.e-menu-wrapper, .e-menu-container {
display: block;
}
</style>
|
Dear Syncfusion,
Thank you for your previous response and sample you shared. In the shared sample, every thing works perfectly well as I would like my code to also run.
However, when I copy the same css class shared with me and place it in my code, I still have the problem in my code.
I have pasted the layout page with my code snippet below here of how I have applied your solution but my problem has still persisted.
Thank You
@using RHITES.Data;
@inject UserManagement userManagement;
@using RHITES.Models
<div class="mydiv">
<AuthorizeView>
<Authorized>
<SfMenu Items="@menuItems" TValue="MenuItem" EnableScrolling="true" ShowItemOnClick="true"></SfMenu>
</Authorized>
<NotAuthorized>
@* <SfMenu Items="@menuItems" TValue="MenuItem" EnableScrolling="true" ShowItemOnClick="true"></SfMenu>*@
</NotAuthorized>
</AuthorizeView>
</div>
@code {
public List<MenuItem> menuItems = new List<MenuItem>();
protected override void OnAfterRender(bool firstRender)
{
var isSignedIn = userManagement.IsSignedIn();
if (isSignedIn)
{
bool Administrator = false;
bool MonitoringEvaluation = false;
bool DataEntrant = false;
using (var db = new RHITESContext())
{
var data = db.ViewUserManagement.FirstOrDefault(o => o.UserName == userManagement.GetUserName());
if (data != null)
{
if (data.RoleName.Contains("Administrator"))
{
Administrator = true;
}
else if (data.RoleName.Contains("M&E Officer"))
{
MonitoringEvaluation = true;
}
else if (data.RoleName.Contains("Data Entrant"))
{
DataEntrant = true;
}
}
}
menuItems.Add(new MenuItem { Text = "DASHBOARD", Url = "/Index", IconCss = "fa fa-area-chart" });
menuItems.Add(new MenuItem { Text = "MAP", Url = "/MapsPage", IconCss = "fa fa-map-marker" });
menuItems.Add(new MenuItem { Text = "ART PATIENT UPLOAD", Url = "/patientlevel", IconCss = "fa fa-upload" });
menuItems.Add(new MenuItem { Text = "AUDIT C&A UPLOAD", Url = "/AuditUploadPage", IconCss = "fa fa-upload" });
menuItems.Add(new MenuItem { Text = "HEI AUDIT TOOL UPLOAD", Url = "/HEIAuditToolPage", IconCss = "fa fa-upload" });
if (Administrator == true)
{
menuItems.Add(
new MenuItem
{
Text = "UTILITIES",
IconCss = "fa fa-cogs",
Items = new List<MenuItem>
{
//new MenuItem{ Text = "PRIMARY DATA", Url="/PrimaryDataPage" },
new MenuItem{ Separator=true},
new MenuItem { Text = "MANAGE USERS", Items= new List<MenuItem>()
{
new MenuItem { Text = "REGISTER SYSTEM USER", Url = "/Account/RegisterUserPage" },
new MenuItem { Separator = true },
new MenuItem { Text = "MANAGE USER PASSWORDS", Url = "/Account/ChangeUserPasswordPage" },
new MenuItem { Separator = true },
new MenuItem { Text = "ACCOUNT MANAGEMENT", Url = "/Account/UserManagementPage" }
}
}
}
}
);
}
menuItems.Add(
new MenuItem
{
Text = "HELLO " + userManagement.GetStaffName().ToUpper() + " !",
IconCss = "fa fa-user",
Id = "LoginMenu",
Items = new List<MenuItem>
{
new MenuItem{ Text = "CHANGE PASSWORD", Url="/Account/ChangePasswordPage",IconCss="fa fa-key"},
new MenuItem{ Separator=true},
new MenuItem{ Text = "LOG OUT", Url="/",IconCss="fa fa-sign-out"},
}
}
);
}
base.OnAfterRender(firstRender);
}
}
<style>
.mydiv {
min-width: 100%;
background-color: #3498db;
}
.e-menu-wrapper, .e-menu-container {
display: block;
}
</style>
Hello Janakiraman,
You promised to give me feed back on the 18th November 2021 but I have not seen it yet.
Any information from your side?
Hi Janakiraman,
AuthorizeView is not the problem.As yoy can see in the video I have attached. I have commented out AuthorizeView in my layout page but still the problem is still on.
Check my video attached here and my razor page.
You can access my full system here incase you need to check out any styles / pages