[CLOSED] ItemsFromPage BorderLayout

  1. #1

    [CLOSED] ItemsFromPage BorderLayout

    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
    Last edited by Daniil; Jun 04, 2012 at 8:39 AM. Reason: [CLOSED]
  2. #2
    1. Set Height for TabPanel
    2. Set Layout(LayoutType.Fit) for first tab
    3. North region must provide height
    Vladimir Shcheglov
    Sr. Developer
  3. #3
    Quote Originally Posted by Vladimir View Post
    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

Similar Threads

  1. Replies: 0
    Last Post: Apr 19, 2012, 4:52 PM
  2. Replies: 1
    Last Post: Jun 08, 2010, 1:51 AM
  3. [CLOSED] [1.0] BorderLayout
    By state in forum 1.x Premium Help
    Replies: 6
    Last Post: Jun 02, 2010, 7:07 PM
  4. BorderLayout on BorderLayout do not render
    By nanosassa in forum 1.x Help
    Replies: 1
    Last Post: Apr 22, 2009, 5:05 PM
  5. [CLOSED] BorderLayout Bug
    By Timothy in forum 1.x Premium Help
    Replies: 4
    Last Post: Feb 01, 2009, 3:51 PM

Posting Permissions