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

hellow,

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

so for showing the dialog, I'm using the following vb.net 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) {
dialog.hide();
}
}

========

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

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