[CLOSED] right panel set width 100% [Razor]

  1. #1

    [CLOSED] right panel set width 100% [Razor]

    Hi, can you help me how to set width 100% to my right panel (pnlAAA2) in this example. I have one panel in which I have two panels (left - pnlAAA1 and right - pnlAAA2). Left panel have fixed width 200. For right panel I need to fill remaining area from left panel to right edge of browser.

    @(Html.X().Panel().ID("pnlAAA").Title("A").Layout(LayoutType.HBox)
            .Items(items => {
                items.Add(Html.X().Panel().ID("pnlAAA1").Width(200).Title("A1")
                    .Items(itemsA1 => {
                        itemsA1.Add(Html.X().Button().ID("bAAA1").Text("A1 button"));
                        itemsA1.Add(Html.X().Button().ID("bBBB1").Text("B1 button"));
                    }));
                items.Add(Html.X().Panel().ID("pnlAAA2").Layout(LayoutType.Anchor).Title("A2")
                    .Items(itemsA2 => {
                        itemsA2.Add(Html.X().Button().ID("bAAA2").Text("A2 button"));
                        itemsA2.Add(Html.X().TextField().ID("txtA2").FieldLabel("Text field A2").Width(200).LabelWidth(100));
                    }));
            })
        )
    Last edited by Daniil; Apr 24, 2012 at 11:15 AM. Reason: [CLOSED]
  2. #2
    Hi,

    Please set up
    .Flex(1)
    for that Panel.
  3. #3
    That is solution! Thanks!

Similar Threads

  1. [CLOSED] [Razor] How to add HtmlContent to Panel
    By UnifyEducation in forum 2.x Legacy Premium Help
    Replies: 4
    Last Post: Jul 27, 2012, 11:41 AM
  2. [CLOSED] [Razor] Setup Auto load panel in razor
    By UnifyEducation in forum 2.x Legacy Premium Help
    Replies: 1
    Last Post: Apr 27, 2012, 10:54 AM
  3. [CLOSED] [2.0] Razor and Panel Tools
    By Timothy in forum 2.x Legacy Premium Help
    Replies: 3
    Last Post: Feb 21, 2012, 12:42 PM
  4. [CLOSED] [2.0] Razor and Panel TopBar
    By Timothy in forum 2.x Legacy Premium Help
    Replies: 6
    Last Post: Feb 20, 2012, 2:58 PM
  5. [CLOSED] Grid Panel : Column width (Auto width)
    By legaldiscovery in forum 1.x Legacy Premium Help
    Replies: 4
    Last Post: Sep 24, 2011, 8:31 PM

Posting Permissions