Apr 10, 2012, 3:12 PM
Window doesn't show when created from code behind.
I'm having problems with defining a window and showing it from code behind. For example:
What could be the problem?
Thanks in advance.
var win = new Window()
{
ID = "MyWindow",
Title = "My Window",
Width = Unit.Pixel(800),
Height = Unit.Pixel(600),
Modal = true,
AutoRender = false,
Collapsible = true,
Maximizable = true,
Hidden = true,
CloseAction = Ext.Net.CloseAction.Destroy,
Loader = new ComponentLoader
{
Url = url,
Mode = LoadMode.Frame,
AutoLoad = true,
LoadMask =
{
ShowMask = true
}
}
};
this.Form.Controls.Add(win);
calling win.Show() doesn't show it. I'm developing using .NET 4 ASP.NET, Visual Studio 2010, C#.What could be the problem?
Thanks in advance.
Last edited by geoffrey.mcgill; Apr 10, 2012 at 3:14 PM.
Reason: please use [CODE] tags