PDA

View Full Version : [Razor] Unable to create Portal panel



vs.mukesh
Apr 17, 2012, 11:56 AM
Hi,

I am trying to create below mentioned example by using Razor engine. But i am getting some script error. http://examples2.ext.net/#/Portal/Basic/Simple/



@using Ext.Net.MVC
@{
Layout = null;
ViewBag.Title = "Portal";
}
<html>
<head>
@Html.X().ResourcePlaceHolder(Ext.Net.ResourceMode .ScriptFiles)
</head>
<body>
@Html.X().ResourceManager()
@using (Html.BeginForm())
{
@(

Html.X().Viewport()
.Layout("border")
.Items(viewportitems =>
{
// West Panel
viewportitems.Add(
Html.X().Panel()
.ID("panelheader")
.Region(Ext.Net.Region.West)
.Width(200)
.Collapsible(true)
.Split(true)
.Layout(Ext.Net.LayoutType.Accordion)
.Margins("5 0 5 5")
);
// Center Panel
viewportitems.Add(
Html.X().TabPanel()
.ID("TabPanel")
.Region(Ext.Net.Region.Center)
.Title("TabPanel")
.Margins("5 5 5 0")
.Items(tabpanelitems =>
{
tabpanelitems.Add(
// Panel
Html.X().Panel()
.ID("panel1")
.Title("Tab 1")
.Layout(Ext.Net.LayoutType.Fit)
.Items(panel1items =>
{
panel1items.Add(
//Portal
Html.X().Portal()
.ID("portal")
.Border(false)
.Items(portalitems =>
{
//Portal Column
portalitems.Add(
Html.X().PortalColumn()
.ID("PortalColumn")
.Items(portalcolumnitems =>
{
//Portlet
portalcolumnitems.Add(
Html.X().Portlet()
.ID("Portlet1")
.Title("Another Panel 1")
.Icon(Ext.Net.Icon.Accept)
);
})
);
})
);
})
);
})
);
})
)
}
</body>
</html>




Thanks in advance.

Regards,
Mukesh Selvaraj

vs.mukesh
Apr 23, 2012, 9:09 AM
I am awaiting for a week. It would be more helpful to me to get the soultion or workaround to this issue.

Thans in advance.


Regards,
Mukesh Selvaraj

vs.mukesh
May 09, 2012, 10:54 AM
Any Updates....