My RadWindows are sizing properly on load. But if I resize my RadWindow manually the content doesn't stretch / grow. Is there a way to do this so if I make my RadWindow full screen that it's content stretches to full screen too?
3 Answers, 1 is accepted
This depends on the way the content is designed. If it resizes in a regular browser window, it will resize in a RadWindow's content page as well. This is usually done by setting the size of your page elements in percent. RadWindow has its size in pixels and these values are updated when it resizes, thus content inside has static dimensions to draw upon to facilitate resizing.
The only way to get RadWindow sizing to work (per all the articles you guys have) is to have something with pixel sizing. So the first thing in all my popup windows is a RadAjaxPanel with pixel width.
What do you think would work...perhaps :
1. OnLoad of window change the RadAjaxPanel width to 100% and from then on it should resize with RadWindow
2. Always capture OnClientResizeEnd and manual resize RadAjaxPanel accordingly
Thanks for the help!
You can simply set the main wrappers dimensions to 100%. Here is a basic example:
and the same approach can work in the content template:
Note, however, that rarely wrapping the entire content of a page in an UpdatePanel is useful, because it does not actually reduce the size of the request, but then causes JS to be used to recreate the nodes instead of the browser engine, so it may actually be slower than a full postback.