It looks like css class that was assigned to ModalBackgroundCssClass property is not applied after asynch postback.
WebDialogWindow is inside an UpdatePanel.
After a asynchronous postback, the dialog window shows up but the ModalBackgroundCssClass css is not applied.
Is WebDialogWindow not compatible with UpdatePanel?
Here is my code
FrontEnd:
<html xmlns="http://www.w3.org/1999/xhtml"><head runat="server"> <title>Untitled Page</title></head><body> <form id="form1" runat="server"> <asp:ScriptManager ID="ScriptManager1" runat="server"> </asp:ScriptManager> <div> <asp:UpdatePanel ID="upanel" runat="server" ChildrenAsTriggers="true"> <ContentTemplate> <ig:WebDialogWindow ID="WebDialogWindow1" runat="server" Height="300px" Width="400px" Modal="true" Moveable="true"> <ContentPane> <Template> <asp:Button ID="btnOK" runat="server" Text="okay" OnClick="btnOK_Click" /> </Template> </ContentPane> </ig:WebDialogWindow> <asp:Button ID="btnShow" runat="server" Text="show window" OnClick="btnShow_Click" /> </ContentTemplate> </asp:UpdatePanel> </div> </form></body></html>
Code Behind:
protected void Page_Load(object sender, EventArgs e) { } protected void btnShow_Click(object sender, EventArgs e) { this.WebDialogWindow1.WindowState = Infragistics.Web.UI.LayoutControls.DialogWindowState.Normal; } protected void btnOK_Click(object sender, EventArgs e) { this.WebDialogWindow1.WindowState = Infragistics.Web.UI.LayoutControls.DialogWindowState.Hidden; }
The WebDialogWindow should play nice with the UpdatePanel, so I'm leaning towards "bug" on this one. Have you been in touch with our Developer Support team yet? I'd recommend submitting this as a bug online through http://ko.infragistics.com/support/submitrequest.aspx so that you can get a case number assigned.
-Tony