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
Hide WebDialogWindow close using JavaScript


I have an issue with closing a WebDialogWindow using a JS code.

so for showing the dialog, I'm using the following code:

WebDialogWindow9.WindowState = Infragistics.Web.UI.LayoutControls.DialogWindowState.Normal

the above code works fine, and inside that dialog there is a button called (Cancel), this button suppose to close/hide the WebDialogWindow9, so I'm using this JS code:

function closeDialogs() {
var win = window.parent;
var dialog = win.$find('WebDialogWindow9');

if (dialog) {


<igtxt:WebImageButton ID="WebImageButton2" runat="server" Text="Cancel" Width="135px">
<ClientSideEvents Click="closeDialogs" />
<Image Url="./Res/Actions-button-cancel-icon1.png" />

but it does nothing when I click on the button? could you please assist me with this.

Parents Reply Children