Issue with RadWindow (2014.2.618.45)

3 posts, 0 answers
  1. Sean
    Sean avatar
    18 posts
    Member since:
    Nov 2010

    Posted 24 Jun 2014 Link to this post

    Have a couple of RadWindows on a product I developed a couple of years ago.  No code has changed only updated to the latest Telerik to add some other functionality, and now the RadWindows do not autosize, the native radwindow close doesn't close and when attempt to close them via a button, I am now getting the following error:

    0x800a01b6 - JavaScript runtime error: Object doesn't support property or method 'stopTransition'

    The following is code that creates the RadWindow server side, and then adds it to RadWindowManager.  This code has not changed.

    <telerik:RadWindowManager ID="rwmViewPackage" runat="server" Animation="Fade"
    EnableShadow="True" KeepInScreenBounds="True" Modal="True" Skin="Metro" Behaviors="Close"
    VisibleOnPageLoad="True" VisibleStatusbar="False" DestroyOnClose="True"
    EnableViewState="false" AutoSize="True" >

    Dim rwViewPackage As New Telerik.Web.UI.RadWindow
    rwViewPackage.NavigateUrl = "~/vpAdditions/Comments.aspx"
    rwViewPackage.Title = "Comments for "
    rwViewPackage.Title = rwViewPackage.Title & tbManufacturer.Text & " " & tbName.Text
    rwViewPackage.ID = "rwViewPackage"
    rwViewPackage.Animation = Telerik.Web.UI.WindowAnimation.Fade
    rwViewPackage.EnableViewState = False
    rwViewPackage.EnableShadow = True
    rwViewPackage.DestroyOnClose = True
    rwViewPackage.VisibleOnPageLoad = True
    rwViewPackage.KeepInScreenBounds = True
    rwViewPackage.Modal = True
    rwViewPackage.Skin = "Default"
    rwViewPackage.IconUrl = "../Graphics/Package/PreviousComments.png"
    rwViewPackage.AutoSize = True

    The Comments.aspx contains the following code to close:
    <telerik:RadCodeBlock ID="RadCodeBlock1" runat="server">
    <script type="text/javascript">
    function CloseAndRebind() {
    setTimeout(function () {
    }, 0);
    function GetRadWindow() {
    var oWindow = null;
    if (window.radWindow) oWindow = window.radWindow; //Will work in Moz in all cases, including clasic dialog
    else if (window.frameElement.radWindow) oWindow = window.frameElement.radWindow; //IE (and Moz as well)
    return oWindow;

    ClientScript.RegisterStartupScript(Page.GetType(), "mykey", "CloseAndRebind();", True)


  2. Sean
    Sean avatar
    18 posts
    Member since:
    Nov 2010

    Posted 24 Jun 2014 in reply to Sean Link to this post

    Just an update, reverting back to 2014.1.403.45 fixes the problem, all of the RadWindows work and close again.
  3. Marin Bratanov
    Marin Bratanov avatar
    3908 posts

    Posted 25 Jun 2014 Link to this post

    Hello Sean,

    I was able to reproduce a JavaScript error when a button in the RadWindow content page is clicked and I am logging it for fixing. You can track it here:

    On my end this seems to alleviate the issue:

    function CloseAndRebind() {
        setTimeout(function () {
            var wnd = GetRadWindow();
            wnd.set_animation(0);//no animations
        }, 0);

    I have also updated your Telerik points for your report.

    The change in the control is that it uses an improved set of animations code that should perform faster, especially on mobile devices. The animations + autosizing + DestroyOnClose is what causes the problem. Thus, another workaround would be to disable animations.

    Please accept my apologies for the inconvenience caused.

    As for the error itself - it was different on my end and not the one you report, yet here is an override that should help with that - it adds a check for the only place where stopTransitions is called. Place that at the end of the form where the RadWindow control resides.

    Telerik.Web.UI.RadWindow.prototype._hide = function () {
        if (!this.get_animation() || this.get_animation() == 0) {
        else {
            if (this._enableShadow && $telerik.isIE) {
            var fnc = Function.createDelegate(this, this._afterHide),
                isMaximized = this.isMaximized(),
                duration = this.get_animationDuration();
            var popupElem = $telerik.$(this._popupElement);
            if (popupElem.stopTransition) {
                popupElem.stopTransition().transition({ opacity: 0 }, duration, "linear", function () {

    On autosizing - can you confirm you follow the guidelines from this help article:

    I am attaching here the pages I test with and they seem to autosize correctly. You can find a video that shows this attached as well. I hope comparing your sample with mine will help you in this regard too.

    Regards, Marin Bratanov

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

Back to Top