OK, got it figured out.
I have all of my "editors" inside of a Panel control. When the editors are not being used I have the panel control visibility set to false
Code: C#
pnlEditors.Visible = false;
So, just before I go to show the File Editor, I set the main panel to visible and then do the show, this works fine. However, if I set the main panel to false right after setting the dialog to not show, then the "lockup" occurs.
My purpose in doing this is to cut down on the code being rendered and sent to the browser, this helped shave a ton of generated HTML and JavaScript off our CMS and speed up overall page load (almost 100K) This may not be necessary with your controls but is for some of the other stuff I am doing.
I have also noticed that using this method adds about 2 seconds to the display of the dialog.
Is there a solution? or should I just not turn off the panel for the time being?
I have created a test page, here is the code.
Code: HTML/ASPX
<asp:UpdatePanel ID="UpdatePanel1" runat="server">
<ContentTemplate>
<asp:Button ID="btn1" runat="server" OnClick="btn1_Onclick" Text="Show Panel" />
<asp:Panel ID="pnl1" runat="server" Visible="false" >
<eo:Dialog runat="server" id="dlgFileEditor"
CloseButtonUrl="/masterpages/theme_orange/Close_Simple.png"
IsModal="true" AllowResize="True"
ControlSkinID="None" Width="500px"
ShadowColor="LightGray" ShadowDepth="3"
ResizeImageUrl="00020014" HeaderHtml="File Editor"
BackShadeColor="gray" BackShadeOpacity="50" >
<HeaderStyleActive CssText="Color:#fff; font-weight:bold; padding-right: 4px; padding-left: 4px; background:url('/masterpages/Theme_Orange/TitleBar.png') repeat-x left top;"></HeaderStyleActive>
<ContentStyleActive CssClass="ControlBackground"></ContentStyleActive>
<ContentTemplate>
<asp:Button ID="btn2" runat="server" OnClick="Close" Text="Close" />
</ContentTemplate>
</eo:Dialog>
</asp:Panel>
<eo:CallbackPanel ID="CallbackPanel1" runat="server" Height="150px" Width="200px">
</eo:CallbackPanel>
</ContentTemplate>
</asp:UpdatePanel>
Code: C#
protected void btn1_Onclick(object sender, EventArgs e)
{
pnl1.Visible = true;
dlgFileEditor.InitialState = DialogState.Visible;
}
protected void Close(object sender, EventArgs e)
{
dlgFileEditor.InitialState = DialogState.Hidden;
pnl1.Visible = false;
}
David L. Sargent
Developer
Washington State University