Hi Telerik Team,
I have the following menu.I want to set a popup window while clicking menu each menu item(ie:Here menu item Action will be as popup).
How this possible?
With regards
Dayana
<% Html.Telerik().Menu()
.Name("Menu")
.Orientation(MenuOrientation.Horizontal)
.Items(menu =>
{
menu.Add()
.ImageUrl("~/Images/Active.gif")
.ImageHtmlAttributes(new { style = "padding: 0px 0px 0px 18px;position: absolute;" })
.Text("Employee")
.HtmlAttributes(new { style = "width: 113;line-height:4;" })
.Selected(true)
.Items(ItemEmployee =>
{
ItemEmployee.Add().Text(" Home");
ItemEmployee.Add().Text("New").Items(ItemNew =>
{
ItemNew.Add()
.Text("Test1")
.Action("AddTask?ItemTypeID=1&Operation=Add", "Test")
.ImageUrl("~/Images/tt.gif");
ItemNew.Add()
.Text("Add Feature")
.Action("AddTask?ItemTypeID=2&Operation=Add", "Test")
.ImageUrl("~/Images/tt1.gif");
ItemNew.Add()
.Text("Add Bug")
.Action("AddTask?ItemTypeID=3&Operation=Add", "Test")
.ImageUrl("~/Images/tt3.gif");
ItemNew.Add()
.Text("Add Release")
.Action("AddTask?ItemTypeID=4&Operation=Add", "Test")
.ImageUrl("~/Images/tt4.gif");
});
});
menu.Add()
.Text("Lists")
.HtmlAttributes(new { style = "width: 113;line-height:4;" })
.Visible(Convert.ToBoolean(ViewData["IsAuthorized"]))
.ImageUrl("~/Images/icon.png")
.ImageHtmlAttributes(new { style = "padding: 0px 0px 0px 18px;position: absolute;" });
})
.Render();
%>
I have the following menu.I want to set a popup window while clicking menu each menu item(ie:Here menu item Action will be as popup).
How this possible?
With regards
Dayana
<% Html.Telerik().Menu()
.Name("Menu")
.Orientation(MenuOrientation.Horizontal)
.Items(menu =>
{
menu.Add()
.ImageUrl("~/Images/Active.gif")
.ImageHtmlAttributes(new { style = "padding: 0px 0px 0px 18px;position: absolute;" })
.Text("Employee")
.HtmlAttributes(new { style = "width: 113;line-height:4;" })
.Selected(true)
.Items(ItemEmployee =>
{
ItemEmployee.Add().Text(" Home");
ItemEmployee.Add().Text("New").Items(ItemNew =>
{
ItemNew.Add()
.Text("Test1")
.Action("AddTask?ItemTypeID=1&Operation=Add", "Test")
.ImageUrl("~/Images/tt.gif");
ItemNew.Add()
.Text("Add Feature")
.Action("AddTask?ItemTypeID=2&Operation=Add", "Test")
.ImageUrl("~/Images/tt1.gif");
ItemNew.Add()
.Text("Add Bug")
.Action("AddTask?ItemTypeID=3&Operation=Add", "Test")
.ImageUrl("~/Images/tt3.gif");
ItemNew.Add()
.Text("Add Release")
.Action("AddTask?ItemTypeID=4&Operation=Add", "Test")
.ImageUrl("~/Images/tt4.gif");
});
});
menu.Add()
.Text("Lists")
.HtmlAttributes(new { style = "width: 113;line-height:4;" })
.Visible(Convert.ToBoolean(ViewData["IsAuthorized"]))
.ImageUrl("~/Images/icon.png")
.ImageHtmlAttributes(new { style = "padding: 0px 0px 0px 18px;position: absolute;" });
})
.Render();
%>