Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
314
Is WebDialogWindow not compatible with UpdatePanel?
posted

 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;
    }