From Q1 2009, RadWindow adds a new feature to its list - the AutoSize property. When this property is set to true, the window will resize itself according to the size of the content page. If the content page's dimensions are bigger than the parent one's, RadWindow will fill the browser and render scrollbars for viewing the rest of the content page.
In Q32010 we added a new property AutoSizeBehaviors that allows the developer to get a better control over the autosizing functionality. The property is an enum that accepts multiple flags:
-
Default
-
Width
-
WidthProportional
-
Height
-
HeightProportional
When AutoSizeBehaviors="Default", RadWindow resizes itself proportionaly by width and height and changes its position accordingly to the new size. If the property is set to Width or Height, the window is sized to the left or to the bottom only, without changing the control's position.
Note: When AutoSize="true";, the size of the content page is taken in window.onload. This means that if you change the size of the content page on the client (e.g. with Ajax), the RadWindow will not resize after the new content is displayed. In such scenario autoSize() should be called manually.