When the RadWindow
is maximized, calling the moveTo
do not affect the RadWindow
object. This behavior is by design and cannot be changed. In your case you could cancel the default Maximize
command and resize the window object by using its setSize() function.
|if (eventArgs.get_commandName().toLowerCase() == "maximize")
| oWnd.moveTo(-10, 0);
| oWnd.setSize(myWidth, myHeight); // this will be applied now
Note that in this case the RadWindow
will be in non maximized state and double clicking on the title bar will trigger the Maximize
command every time, not the Restore
one. This being said that if you need to restore the previous state of the window you need to implement a custom code for that.
I hope this helps.
the Telerik team