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

Resize Window when parent window get resized

1 Answer 65 Views
Window
This is a migrated thread and some comments may be shown as answers.
Tony Fabian
Top achievements
Rank 1
Tony Fabian asked on 18 Oct 2008, 07:09 AM
Hi,

I need the a Modal RAD Window to resize when the parent window gets resized.

The width and height of the RAD Window is 80% of the parent window width and height.

I suspect that i have to attach a onresize event in the parent window and then calculate the new width and height using JavaScript. Is there an easier way to accomplish this? 

... also is there any sample code available on how to resize a window from the parent window.

Kind regards

Tony

1 Answer, 1 is accepted

Sort by
0
Georgi Tunev
Telerik team
answered on 20 Oct 2008, 06:47 AM
Hi Tony,

Indeed, this is the correct approach. To resize a RadWindow from the parent page (e.g. from the page from in which it was created), you need to get a reference to it by using $find() or GetRadWindowManager().GetWindowByName() (if you are using RadWindowManager) and then to call its setSize() method.




Regards,
Georgi Tunev
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
Window
Asked by
Tony Fabian
Top achievements
Rank 1
Answers by
Georgi Tunev
Telerik team
Share this question
or