Apr 12, 2012, 9:28 PM
[CLOSED] Column Layouts from codebehind
Hi,
The question is how exacly make column layout from code behind?
here is my code which not working as he should(nothing displayed after add this to Ext.Net.Panel)
The question is how exacly make column layout from code behind?
here is my code which not working as he should(nothing displayed after add this to Ext.Net.Panel)
Ext.Net.ColumnLayout columnLayout = new ColumnLayout();
LayoutColumn col1 = new LayoutColumn();
LayoutColumn col2 = new LayoutColumn();
Ext.Net.Panel panelLeftContainer = new Ext.Net.Panel();
panelLeftContainer.ID = "leftContainerMMP";
Ext.Net.Panel panelRightContainer = new Ext.Net.Panel();
panelRightContainer.ID = "rightContainerMMP";
// adding some controls to panelsContainers
col1.ColumnWidth = 0.5M;
col2.ColumnWidth = 0.5M;
col1.Items.Add(panelLeftContainer);
col2.Items.Add(panelRightContainer);
columnLayout.Columns.Add(col1);
columnLayout.Columns.Add(col2);
Ext.Net.Viewport viewport = new Ext.Net.Viewport();
viewport.Width = 800;
viewport.Items.Add(columnLayout);
test_pan.Items.Add(viewport);
Is there anything i need to add more to make it work?
Last edited by geoffrey.mcgill; Apr 12, 2012 at 11:59 PM.
Reason: [CLOSED]