This is a migrated thread and some comments may be shown as answers.

RadWindow and MDI - Minimize button does not work

3 Answers 18 Views
Window
This is a migrated thread and some comments may be shown as answers.
Randall
Top achievements
Rank 2
Randall asked on 03 Oct 2013, 07:07 PM
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

3 Answers, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 1
answered on 04 Oct 2013, 10:08 AM
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.
0
Accepted
Marin Bratanov
Telerik team
answered on 04 Oct 2013, 12:41 PM
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.
0
Randall
Top achievements
Rank 2
answered on 08 Oct 2013, 06:03 PM
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
Tags
Window
Asked by
Randall
Top achievements
Rank 2
Answers by
Shinu
Top achievements
Rank 1
Marin Bratanov
Telerik team
Randall
Top achievements
Rank 2
Share this question
or