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
1570
WebDialogWindow not appearing on context menu item click
posted

Hi,

I am using WebDialogWindow control of NetAdvantage version 11.1. By default i have set its windowstate to hidden. I want to change it's state to "Normal" on the Itemclick event of "ContextMenu" control. "This contextmenu is inside the AJAX <UpdatePanel> control and i am also using <triggers> on ItemClick for auto-update. Now the problem is on click of Context Menu item WebDialog window is not appearing.

Can anyone help me in this issue?

Thanks,

Mits

Parents
  • 8160
    posted

    Hello Mits,

    it should be something like this:

    <head runat="server">

        <title></title>

        <script type="text/javascript">

            function ItemClick() {

                var dw = $find('<%=WebDialogWindow1.ClientID%>');

                dw.show();

            }

        </script>

    </head>

    <body>

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

        <ig:WebScriptManager ID="WebScriptManager1" runat="server">

        </ig:WebScriptManager>

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

            WindowState="Hidden">

        </ig:WebDialogWindow>

        <asp:UpdatePanel ID="Updatepanel1" runat="server">

            <Triggers>

                <asp:AsyncPostBackTrigger ControlID="WebDataMenu1" EventName="ItemClick" />

            </Triggers>

            <ContentTemplate>

                <ig:WebDataMenu ID="WebDataMenu1" runat="server">

                    <ClientEvents ItemClick="ItemClick" />

                    <AutoPostBackFlags ItemClick="On" />

                    <Items>

                        <ig:DataMenuItem Key="item1" Value="item1" Text="item1">

                        </ig:DataMenuItem>

                    </Items>

                </ig:WebDataMenu>

            </ContentTemplate>

        </asp:UpdatePanel>

        </form>

    </body>

    </html>

     

     

Reply Children