Mar 30, 2012, 2:38 PM
[RAZOR] Menu Panel , Menu , Menu item not working in ext.net 2.0
Hi,
I am not able to create MenuPanel. Please find below mentioned code. Find the attachment.
Thanks in advance
Regards,
Mukesh Selvaraj
I am not able to create MenuPanel. Please find below mentioned code. Find the attachment.
@using Ext.Net.MVC
@{
Layout = null;
}
<!DOCTYPE html>
<html>
<head>
@Html.X().ResourcePlaceHolder(Ext.Net.ResourceMode.ScriptFiles)
<title>Accordian Layout</title>
</head>
<body>
@Html.X().ResourceManager()
@(
Html.X().Window()
.Title("MenuPanel")
.Width(600)
.Height(370)
.Layout(Ext.Net.LayoutType.Border)
.AutoShow(true)
.Items(widowitems =>
{
widowitems.Add(
Html.X().Panel()
.Width(350)
.Layout(Ext.Net.LayoutType.Accordion)
.Split(true)
.Region(Ext.Net.Region.West)
.Margins("5 0 5 5")
.Border(false)
.Items(panelitems =>
{
panelitems.Add(
Html.X().MenuPanel()
.Title("MenuPanel with Selection Saving")
.Icon(Ext.Net.Icon.ArrowSwitch)
.Items(menupaneliconitems =>
{
menupaneliconitems.Add(
Html.X().Menu()
.Items(menuitemsmenui =>
{
menuitemsmenui.Add(
Html.X().MenuItem()
.Text("item 1")
.Icon(Ext.Net.Icon.ArrowSwitch)
);
})
);
})
);
})
);
widowitems.Add(
Html.X().Panel()
.ID("pnlCenter")
.Title("Selected Item")
.Padding(5)
.Region(Ext.Net.Region.Center)
.Margins("5 5 5 0")
);
})
)
</body>
</html>
Kindly do the needful.Thanks in advance
Regards,
Mukesh Selvaraj