Apr 13, 2012, 7:44 AM
[CLOSED] Panel with columnLayouts codebehind don't working
Hi,
Here are my code sample whitch should working but it doesn't.
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:)
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]