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
175
WebDialog no postback
posted

Hi There,
Looking for your help please.

I have a webdialog that has a cancel button on it and I need it to act like the [x] in the top right hand corner. I.E. clicking it closes the webdialog window without causing a post back.

How would I do that?

Thanks for your help.

Best Regards,

Steve.

Parents
No Data
Reply
  • 24497
    Suggested Answer
    posted

    Hi Steve,

    You may use hide of set_windowState methods of dialog. Below is example:

    <script type="text/javascript">
     function closeDialog()
     {
      var dialog = $find('<%=WebDialogWindow1.ClientID%>');
      if(dialog)
    //   dialog.set_windowState($IG.DialogWindowState.Hidden);
       dialog.hide();
     }
    </script>
    <ig:webdialogwindow id="WebDialogWindow1" runat="server" height="288px" width="380px">
       <ContentPane>
         <Template>
          <input type="button" onclick="closeDialog()" value="close" />
         </Template>
       </ContentPane>
    </ig:webdialogwindow>

Children