PDA

View Full Version : [CLOSED] MVC TabMenu not showing



leonardm
Aug 07, 2013, 9:50 PM
Hi,

I got the latest source for Ext.NET from the SVN today to try out the TabMenu but it's not working for my situation.



X.TabPanel()
.ID("MainTabPanel")
.Region(Region.Center)
.Margins("0 2 2 2")
.Cls("tabs")
//.Html(settings)
.MinTabWidth(115)
.Items(
X.Panel()
.ID("pnlDashboard")
.Title("Dashboard")
.Icon(Icon.ChartPie)
.BodyPadding(0)
.Layout(LayoutType.Border)
//.TabMenu(m => m.Add(X.Menu()
// .Items(
// X.MenuItem()
// .Text("Item 1"),

// X.MenuItem()
// .Text("Item 2")
// )
//)
)
.Frame(false)
.Loader(X.ComponentLoader()
.Url(Url.Action("ShowDashboard","Dashboard", new RouteValueDictionary{{ "containerId", "pnlDashboard"} }))
.LoadMask(m => m.ShowMask = true)
.Mode(LoadMode.Script)))



If I uncomment the commented code, then nothing is displayed to the screen.

Please advise,
Thanks,
Leo

Baidaly
Aug 08, 2013, 1:49 AM
Hello!

The following works fine:


@(X.TabPanel()
.ID("MainTabPanel")
.Height(200)
.Margins("0 2 2 2")
.Cls("tabs")
//.Html(settings)
.MinTabWidth(115)
.Items(
X.Panel()
.ID("pnlDashboard")
.Title("Dashboard")
.Icon(Icon.ChartPie)
.BodyPadding(0)
.Layout(LayoutType.Border)
.TabMenu(m => m.Add(X.Menu()
.Items(
X.MenuItem()
.Text("Item 1"),

X.MenuItem()
.Text("Item 2")
)
)
)
//.Frame(false)
//.Loader(X.ComponentLoader()
// .Url(Url.Action("ShowDashboard","Dashboard", new RouteValueDictionary{{ "containerId", "pnlDashboard"} }))
// .LoadMask(m => m.ShowMask = true)
// .Mode(LoadMode.Script)))
))

I think the problem with your loader. Please, double check that it refers to the Panel not to the TabPanel.

leonardm
Aug 21, 2013, 5:56 PM
Please Close.

Thanks,
Leo