Feb 21, 2011, 12:43 PM
[CLOSED] create window with GridPanel with codebehind
I'm trying to create window with some fields and grid. When I add GridPanel this stopshowing up. If you remove GridPanel frm here window will show up.
SVN revision 3464
SVN revision 3464
protected void ButtonDetails_Click(object sender, DirectEventArgs e)
{
Window formWindow = new Ext.Net.Window
{
ID = "formWindow",
Width = 866,
Height = 500,
AutoShow = true,
AutoScroll = true,
Layout = "Fit",
Modal = true,
ButtonAlign = Alignment.Center,
CloseAction = CloseAction.Close,
Items = {
new Ext.Net.Panel {
Title = "Panel Title",
Frame = true,
Height = 300,
Layout = "vbox",
AutoScroll = true,
LayoutConfig = {
new VBoxLayoutConfig {
Align = VBoxAlign.Stretch,
DefaultMargins = "1 0 1 0"
}
},
Items = {
new TextField {
DataIndex = "Title",
FieldLabel = "Title",
},
new TextArea {
DataIndex = "Description",
FieldLabel = "Description",
}
}
},
new Ext.Net.GridPanel {
StoreID = "HistoryStore",
ColumnModel = {
Columns = {
new Column { ColumnID = "Description", Header = "Description", DataIndex = "Description" }
}
}
}
}
};
formWindow.DoLayout();
formWindow.Render();
formWindow.Show();
}
Last edited by geoffrey.mcgill; Mar 01, 2011 at 3:44 PM.
Reason: [CLOSED]