Completed
Last Updated: 26 Feb 2015 08:58 by Frank
ADMIN
Marin Bratanov
Created on: 13 Oct 2014 10:20
Category: Window
Type: Bug Report
1
FIX A RadWindow cannot be closed when animations are enabled and unobtrusive validation is used on the page
A JavaScript error is thrown when a dialog that has animations enabled is closed if unobtrusive validation is used on the page.

Workarounds are:
- avoid animations
- OR, add the following script at the end of the form and remove it when this issue is fixed internally
Telerik.Web.UI.RadWindow.prototype._hide = function() {
	if (!this.get_animation() || this.get_animation() == 0) {
		this._afterHide();
	} else {
		if (this._enableShadow && $telerik.isIE) {
			this._setShadowCSSClass(false);
		} 
		var fnc = Function.createDelegate(this, this._afterHide),
			isMaximized = this.isMaximized(),
			duration = this.get_animationDuration();
		var popupElem = $telerik.$(this._popupElement);
		if (popupElem.length > 0 && popupElem.stopTransition) {
			$telerik.$(this._popupElement).stopTransition().transition({ opacity: 0 }, duration, "linear", function () {
				fnc(isMaximized);
			});
		} else {
			fnc(isMaximized);
		}
	}
}
2 comments
Frank
Posted on: 26 Feb 2015 08:58
Yep. That solved my problem thanks.
ADMIN
Misho
Posted on: 18 Feb 2015 09:45
Calling Install-Package AspNet.ScriptManager.jQuery in package manager console solves the problem: http://www.telerik.com/help/aspnet-ajax/introduction-troubleshooting-jquery.html