PDA

View Full Version : [CLOSED] ItemsFromPage BorderLayout



Timothy
Jun 03, 2012, 5:14 PM
Hello,

It would appear that BorderLayout is not working with ItemsFrompage. Please see the following example:

Index.cshtml

@(Html.X().TabPanel()
.Border(false)
.Items(a =>
{
a.Add(Html.X().Panel()
.Border(false)
.ItemsFromPage(this, "~/Views/SubPage.cshtml")
.Title("Example")
);
} )
)


SubPage.cshtml


@(Html.X().Panel()
.Border(false)
.Layout(LayoutType.Border)
.Items(x =>
{
x.Add(Html.X().Panel()
.Html("North")
.Region(Region.North)
);

x.Add(Html.X().Panel()
.Html("Content")
.Region(Region.Center)
);
} )
)


Cheers,
Timothy

Vladimir
Jun 03, 2012, 5:22 PM
1. Set Height for TabPanel
2. Set Layout(LayoutType.Fit) for first tab
3. North region must provide height

Timothy
Jun 03, 2012, 6:17 PM
1. Set Height for TabPanel
2. Set Layout(LayoutType.Fit) for first tab
3. North region must provide height

You're correct, I did not have a height set for my TabPanel.

Please marked this closed.

Cheers,
Timothy