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

Radwindow Minimize Issue

1 Answer 45 Views
Window
This is a migrated thread and some comments may be shown as answers.
Anzar
Top achievements
Rank 2
Anzar asked on 08 Jan 2013, 07:12 AM


When the minimize button is clicked, the title bar is getting visible on the top of the active window...Is there any solution to hide title bar?
(See attachment).

1 Answer, 1 is accepted

Sort by
0
Marin Bratanov
Telerik team
answered on 09 Jan 2013, 02:32 PM
Hi Anzar,

This is the expected behavior - the minimized RadWIndow is still the active one - this is the last one the user interacted with, so it is shown on top. If you want another to become active you can do so in its OnCLientCommand event, e.g:
function OnClientCommand(sender, args)
{
    if (args.get_commandName() == "Minimize")
    {
        $find("RadWindow1").setActive(true);
    }
}

where $find("RadWindow1") is getting ar eference to the desired RadWindow. You can replace that with the one from your case or with a simple loop that goes through all windows in the manager;s collection and activates the first one that is already visible and is not the one we just minimized.

I can also suggest using the approach from this demo to create an MDI-ilke interface.

Yet another alternative is using the MinimizeZoneID so it is minimized somewhere else on the page. Note that this is legacy functionality and may cause some issues in complex cases.

Regards,
Marin Bratanov
the Telerik team
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 their blog feed now.
Tags
Window
Asked by
Anzar
Top achievements
Rank 2
Answers by
Marin Bratanov
Telerik team
Share this question
or