I am using autosize on several of my radwindows successfully.
There are a few windows where I would like to have the window autosized when it loads, but after the initial load, disable autosize on further postbacks.
I am running into a situation where I load a radgrid in a radwindow to display some data with filtering and sorting enabled. If the user specifies a filter criteria which yields no records, the radwindow resizes so small that they cannot "unfilter" because clicking the filter button again opens a list which disappears off the top and bottom of the 'resized' radwindow.
By using autosize when the window first opens, I get a properly sized window. I'd like to be able to disable autosize after the window is opened so on future postbacks the window will not resize.
I attempted to add this code to client-size scripting, but it had no effect. Can someone suggest a method by which I can accomplish this? Thanks, Mike.
function pageLoad() {
var oWnd = null;
if (window.radWindow)
oWnd = window.radWindow;
else
if (window.frameElement.radWindow)
oWnd = window.frameElement.radWindow;
if (oWnd) {
window.setTimeout(function () { oWnd.autoSize(false); oWnd.set_autoSize(false); }, 500);
}
}
There are a few windows where I would like to have the window autosized when it loads, but after the initial load, disable autosize on further postbacks.
I am running into a situation where I load a radgrid in a radwindow to display some data with filtering and sorting enabled. If the user specifies a filter criteria which yields no records, the radwindow resizes so small that they cannot "unfilter" because clicking the filter button again opens a list which disappears off the top and bottom of the 'resized' radwindow.
By using autosize when the window first opens, I get a properly sized window. I'd like to be able to disable autosize after the window is opened so on future postbacks the window will not resize.
I attempted to add this code to client-size scripting, but it had no effect. Can someone suggest a method by which I can accomplish this? Thanks, Mike.
function pageLoad() {
var oWnd = null;
if (window.radWindow)
oWnd = window.radWindow;
else
if (window.frameElement.radWindow)
oWnd = window.frameElement.radWindow;
if (oWnd) {
window.setTimeout(function () { oWnd.autoSize(false); oWnd.set_autoSize(false); }, 500);
}
}