RadWindow and MDI - Minimize button does not work

4 posts, 1 answers
  1. Randall
    Randall avatar
    54 posts
    Member since:
    Jun 2008

    Posted 03 Oct 2013 Link to this post

    Hello,

    I am using:
    • RadControls for ASP.NET v. 2013.2.717.40
    • .NET Framework 4.0
    • Windows 7 Enterprise 64-bit
    • Visual Studio 10
    • IE 9 and Firefox 24

    I am trying to create an application based on the Window - RadWindow and MDI.  So far, most everything is working as it should.  The problem is that the Minimize button on each of the RadWindows does not work properly.  Sometimes it works one time only if I click it right after opening a RadWindow, then it stops working all together.

    I try to post an example application but your online demo has this problem as well.

    Is there a fix for this problem?

    Thanks,
    Randall Price
    Senior Developer
    Virginia Tech
  2. Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 04 Oct 2013 Link to this post

    Hi Randall,

    Please try the following JavaScript that I tried which works fine at my end.

    JavaScript:
    <script type="text/javascript">
    function OnClientActivate(sender, args) {
        var tab = sender.correspondingTab;
        if (tab && !sender._toMinimize) {
            tab.set_selected(true);
        }
    }
    </script>

    Thanks,
    Shinu.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Answer
    Marin Bratanov
    Admin
    Marin Bratanov avatar
    3595 posts

    Posted 04 Oct 2013 Link to this post

    Hi guys,

    A bug in the control (introduced in Q2 2013 with the Lightweight rendermode) causes the problem with the demo. It will be fixed for the upcoming Q3 2013 release and this means that once you upgrade to it you will no longer experience it, or need the following workaround that you can use for the time being:
    Telerik.Web.UI.RadWindow.prototype.minimize = function () {
        if (!this.isCreated()) return;
        var toContinue = this.onCommand("Minimize");
        if (!toContinue) return;
        if (this.isMaximized()) {
            this._normalizeWindowRootCss();
            this._restoreBounds();
        }
        if (this.view) {
            this.view.minimize();
        }
    }

    This script should be placed at the end of the page, before the closing </form> tag.

    Regards,
    Marin Bratanov
    Telerik
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to the blog feed now.
  5. Randall
    Randall avatar
    54 posts
    Member since:
    Jun 2008

    Posted 08 Oct 2013 Link to this post

    Hello Marin,

    Thanks for the quick response.  I implemented your Javascript work-around and it worked fine.  The Minimize buttons on the RadWindow now work as expected.

    I look forward to the Q3 2013 update release also.

    Thanks,
    Randall Price
    Senior Developer
    Virginia Tech
Back to Top