I'm using a radwindow to drill into a category, showing all of the transactions behind it. This data is in a radGrid control on the page.
The same page displays data for multiple details and binds the columns at runtime. The code below is used to open the window and automatically resize it (hopefully) after the data has loaded into the grid. I've run into two problems autosizing the page based off the grid contents.
1) The timeout value is too long for fast computers and too short for slow computers. Is there an easy way to resize the window reliably AFTER the data has been bound to the grid?
2) When displaying the filter options for the grid columns, the filter types (lessthan, equal, etc) occasionally extend beyond the window boundaries. Is there a way to ensure that the filter types fit within the window area (even at the expense of limiting the filtering options somewhat)?
The same page displays data for multiple details and binds the columns at runtime. The code below is used to open the window and automatically resize it (hopefully) after the data has loaded into the grid. I've run into two problems autosizing the page based off the grid contents.
1) The timeout value is too long for fast computers and too short for slow computers. Is there an easy way to resize the window reliably AFTER the data has been bound to the grid?
2) When displaying the filter options for the grid columns, the filter types (lessthan, equal, etc) occasionally extend beyond the window boundaries. Is there a way to ensure that the filter types fit within the window area (even at the expense of limiting the filtering options somewhat)?
openWindow:
function
(URL, title, modal) {
var
oWnd = $find(
'portalWindow'
);
oWnd.SetUrl(URL);
oWnd.set_title(title);
oWnd.Show();
setTimeout(
function
() { GetRadWindowManager().GetActiveWindow().autoSize(
true
); }, 300);
oWnd.center();
oWnd.set_modal(modal);
oWnd.set_behaviors(Telerik.Web.UI.WindowBehaviors.Move + Telerik.Web.UI.WindowBehaviors.Close + Telerik.Web.UI.WindowBehaviors.Resize);
oWnd.set_visibleStatusbar(
false
);