[CLOSED] Panel with columnLayouts codebehind don't working

  1. #1

    [CLOSED] Panel with columnLayouts codebehind don't working

    Hi,
    Here are my code sample whitch should working but it doesn't.
                    Ext.Net.Panel test_pan = new Ext.Net.Panel();
                    //add some control to Ext.Net.Panel: panelLeftContainer and panelRightContainer
                    LayoutColumn layoutColumn1 = new LayoutColumn();
                    layoutColumn1.Items.Add(panelLeftContainer);
                    LayoutColumn layoutColumn2 = new LayoutColumn();
                    layoutColumn2.Items.Add(panelRightContainer);
    
                    ColumnLayout columnLayout = new ColumnLayout { ColumnWidth = 0.5, Width = 800,Split = true, FitHeight = true};
                    columnLayout.Columns.Add(layoutColumn1);
                    columnLayout.Columns.Add(layoutColumn2);
                    test_pan.Items.Add(columnLayout);
                    this.Controls.Add(test_pan);
    any idea what is wrong? or why it's not displaying any column with controls?
    Edited: I Think i got answer why it's not display. So when i add to property Height in panelLeftContainer and panelRightContainer some value for example 900 then i saw everything . But still i want to make it dynamically fit to page Vertically? What layout will be the best for that? and where should i add this layout in test_pan Panel?
    Thanks for advance:)
    Last edited by Daniil; Apr 13, 2012 at 10:55 AM. Reason: [CLOSED]
  2. #2
    Hi,

    You did not provide height for test_pan
  3. #3
    Is there any way to make auto fit height to panel?
  4. #4
    Hi,
    Try to set AutoHeight=true for test_pan and FitHeight=false for ColumnLayout
    Please note that auto height is not always possible (it specific for particular case, AutoHeight is just css rule "height:auto")
  5. #5
    Thanks a lot for fast answer:)

Similar Threads

  1. Treegrid codebehind to Tab Panel
    By JGF in forum 1.x Help
    Replies: 0
    Last Post: Mar 07, 2012, 3:04 AM
  2. AddListener for Ext.Panel Runtime from codebehind
    By Journeyman79 in forum 1.x Help
    Replies: 1
    Last Post: Apr 04, 2011, 2:38 PM
  3. Replies: 3
    Last Post: Feb 18, 2011, 2:18 PM
  4. Replies: 5
    Last Post: Sep 21, 2010, 5:08 PM
  5. [CLOSED] Add panel from codebehind
    By Jurke in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: Sep 17, 2008, 8:45 AM

Tags for this Thread

Posting Permissions