1

Closed

ModalPopupBehavior._hideImplementation decreases _openCount even it the dialog is not open?

description

the _hideImplementation method is called on every Dispose no matter if the dialog is open or not, if this method is called more then 10 times the next dialog is placed behind all content..
_hideImplementation: function() {
    // Internal implementation to hide the modal dialog
    Sys.Extended.UI.ModalPopupBehavior._openCount--;
    this._backgroundElement.style.display = 'none';
    this._foregroundElement.style.display = 'none';

    this.restoreTab();
    this._detachPopup();
},
Please change to:
_hideImplementation: function() {
    // Internal implementation to hide the modal dialog
    if (this._showing) {
        Sys.Extended.UI.ModalPopupBehavior._openCount--;
    }
    this._backgroundElement.style.display = 'none';
    this._foregroundElement.style.display = 'none';

    this.restoreTab();
    this._detachPopup();
},


im not 100% sure but i think disposed is called when the dialog is placed inside a updatepanel and a partial postback happens..

I can't provide example but i have tried the solution and the z-index is kept at 10000, with out the fix the z-index decreases each time a post back happens.
Closed Mar 10, 2016 at 4:09 PM by MikhailTymchukDX
AJAX Control Toolkit was moved to GitHub: https://github.com/DevExpress/AjaxControlToolkit
The fix for this issue is available with the v16.1 release: https://github.com/DevExpress/AjaxControlToolkit/releases/tag/16.1.0

comments

MikhailTymchukDX wrote Mar 9, 2016 at 5:13 PM

The issue is fixed and the fix will be included in the next release.

rubberdown wrote Mar 9, 2016 at 9:56 PM

Hi Mikhail,

We upgraded to the latest release (v15.1.4) and have encountered what appears to be the same issue mentioned in this thread. We tried downgrading to v15.1.3 but encountered an issue with ValidationSummary JS errors.

Would you be able to inform the date of next release of AJAXControlTookit would occur, please?

Thanks