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.

Parents Reply
  • 1700
    Offline posted in reply to CIS EUBAM-LIBYA

    Hello,

    I believe that your scenario is similar to the one discussed in the following forum post, where Viktor has provided a way to find a control that is in different aspx page.

    If this doesn’t resolve the issue, it would be best if you could provide a small sample that demonstrates the issue.  Please remove any external dependencies and code that is not directly related to the issue, zip your application and attach it in this case.

    Having a working sample on my side, which I can debug, is going to be very helpful in finding the root cause of this behavior.

    Thank you for your cooperation. 

    Looking forward to hearing from you.

    Regards,
    Ivan Kitanov

Children