This question is locked. New answers and comments are not allowed.
Greetings,
I tried to align a sub menu to the right
i used this on the sub menu
wheni tested the code on IE6.0 i got a problem when i mouse over the menu, the menu didn't display as expected
the menu item wasn't on the same line as the other menus "home, profile ...etc"
also the sub menus was displayed is wrong way not under the user menu.
i checked if any css effecting this behavior
here the code i used for the menu
i attached an image showing the case
any idea that i can use to fix this issue?
regards
I tried to align a sub menu to the right
i used this on the sub menu
.HtmlAttributes(new { style = "float:right;width:120px;text-align:right;" })
wheni tested the code on IE6.0 i got a problem when i mouse over the menu, the menu didn't display as expected
the menu item wasn't on the same line as the other menus "home, profile ...etc"
also the sub menus was displayed is wrong way not under the user menu.
i checked if any css effecting this behavior
here the code i used for the menu
@(Html.Telerik().Menu()
.Name("menu")
.Orientation(MenuOrientation.Horizontal)
.Items(menu =>
{
menu.Add().Text("Home").Action("Index", "Home");
menu.Add()
.Text("Profile")
.Visible(User.Identity.IsAuthenticated)
.Items(items =>
{
items.Add()
.Text("Personal Information")
.Action("Details", "Profile");
items.Add()
.Text("Contract History")
.Action("Index", "Contract");
items.Add()
.Text("Payslip")
.Action("Index", "Payslip");
});
menu.Add()
.Text("Requests").Visible(User.Identity.IsAuthenticated)
.Items(items =>
{
items.Add().Text("Vacation Requests").Action("Index", "Vacation");
items.Add().Text("Transportation Requests").Action("Index", "TransportationRequest");
items.Add().Text("Overtime Requests").Action("Index", "Overtime");
});
menu.Add()
.Text("Incomplete Tasks").Action("Index", "Task");
menu.Add()
.Text("User").Visible(User.Identity.IsAuthenticated)
.HtmlAttributes(new { style = "float:right;width:120px;text-align:right;" })
.Items(items =>
{
items.Add().Text("Sign out").Action("_LogOff", "Home");
items.Add().Text("Change password").Action("ChangePassword", "Home");
});
}))
i attached an image showing the case
any idea that i can use to fix this issue?
regards