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
50
Getting client event arguments on WindowStateChanged
posted

I want a client-side JavaScript function that fires when the WebDialogWindow state changes.  In that function, I want to know what state the WebDialogWindow changed to.  From my reading of the documentation, the following should work, but it gives me a JavaScript error "object doesn't support this property or method".  How can I accomplish this?

<head runat="server">

    <title>Untitled Page</title>

    <script type="text/javascript">

        function windowStateChanged(sender, args) {

           alert(args.get_newWindowState());

        };

    </script>

</head>

<body>

    <form id="form1" runat="server">

        <asp:ScriptManager ID="ScriptManager1" runat="server"></asp:ScriptManager>

        <ig:WebDialogWindow ID="WebDialogWindow1" runat="server" Height="300px" Width="400px">

            <Header>

                <MaximizeBox Visible="True"></MaximizeBox>

                <MinimizeBox Visible="True"></MinimizeBox>

            </Header>

            <ClientEvents  WindowStateChanged="windowStateChanged" ></ClientEvents>

            <Resizer Enabled="True" />

        </ig:WebDialogWindow>

    </form>

</body>

Parents
No Data
Reply Children
No Data