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

Minimized window maximize

2 Answers 27 Views
Window
This is a migrated thread and some comments may be shown as answers.
Tommy
Top achievements
Rank 1
Tommy asked on 20 Oct 2008, 01:09 PM
Hi,

when I minimize a window I get in the titlebar the restore button.
But what I want is, when I minimize a window there should be the maximize button. Or pressing the restore button should maximize the window.
How can I achieve this?

Thank you for your answers.

Thomas

2 Answers, 1 is accepted

Sort by
0
Georgi Tunev
Telerik team
answered on 22 Oct 2008, 01:52 PM
Hi Tommy,

Here is how to set the RadWindow to maximize when the window is minimized and the Restore button is pressed:
function OnClientCommand(sender,args) 
 if(args.get_commandName() == "Restore"
 { 
    if(sender.isMinimized()) 
    { 
        window.setTimeout(function(){ 
        sender.maximize(); 
        },0); 
    } 
 } 



Regards,
Georgi Tunev
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Tommy
Top achievements
Rank 1
answered on 22 Oct 2008, 02:09 PM
Hi Georgi ,

thanks for your help. Works fine.

Thomas
Tags
Window
Asked by
Tommy
Top achievements
Rank 1
Answers by
Georgi Tunev
Telerik team
Tommy
Top achievements
Rank 1
Share this question
or