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
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.