Please note that the code you pasted does not contain the functionality I showed in my previous post - for example - the window.resize event is not handled at all. Also the oWnd variable should be global so that the resize handler should be able to access it.
As for the incorrect resizing - please try using the getClientBounds() function.
. You can find my test page attached.
Please note that I generally advise against such an approach, because
1) the performance will drop, especially if a heavy page is loaded within. This is due to the fact that the window.resize event is fired numerous times and thus a great number of calculations are required for the short amount of time the browser is being resized. You can improve this by resizing the RadWindwo only once the browser has been resized
As for the other part of your post - quite a lot of functionality is already built in as properties. RadWindow in particular has over 30 server-side properties
On the subject of end to end examples - we offer a number of online demos
that cover the basic functionality of the standalone RadWindow and also some of the most common scenarios. If somebody has an interesting implementations he/she can submit it to the Code Library
section and if the scenario is valid and there are no issues with the code we will be happy to publish it and award the sender with some Telerik points.
the Telerik team
Thank you for being the most amazing .NET community! Your unfailing support is what helps us charge forward!
We'd appreciate your vote for Telerik in this year's DevProConnections Awards. We are competing in mind-blowing 20 categories and every vote counts! VOTE for Telerik NOW >>