This is a migrated thread and some comments may be shown as answers.

Maximize RadWindow after RestrictionZoneID changes

2 Answers 84 Views
Window
This is a migrated thread and some comments may be shown as answers.
Andres
Top achievements
Rank 1
Andres asked on 25 Nov 2011, 09:42 PM
Hi, 

I have a RadSplitter with two Panes in it, in the left Pane i have a RadPanelBar wich works as a menu for displaying radWindows on the right Pane, the initial behavior of the RadWindows is set to Maximize, at this point everything works as expected, the user navigates with the left side menu and the windows are displayed on the right side of the splitter, but when the left pane is collapsed, so that the user has a much bigger working area for the RadWindow, the window stays the same size and i would like it to resize (maximize) it every time the radsplitter is collapsed and expanded, is there a way to achieve this?

2 Answers, 1 is accepted

Sort by
0
Dobromir
Telerik team
answered on 28 Nov 2011, 04:02 PM
Hi Andres,

The root of the problem is that the RadWindow's maximize functionality is attached to the browser's window and since the window have a restriction zone which is changing its size (when a sliding pane is docked it resizes the splitter's panes) you need to manually re-maximize the window. To do this you need to handle the content pane's ClientResized client-side event, e.g.:
function OnClientResized(pane, args)
{
    var oWnd = $find("<%=RadWindow1.ClientID %>");
    oWnd.restore();
    oWnd.moveTo(0, 0);
    oWnd.maximize();
}


All the best,
Dobromir
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now
0
Andres
Top achievements
Rank 1
answered on 28 Nov 2011, 04:54 PM
Hi Dobromir,

Thanks for the help, since I´m using multiple RadWindows I ended up using oWnd.MaximizeAll() method.

Thanks again.
Tags
Window
Asked by
Andres
Top achievements
Rank 1
Answers by
Dobromir
Telerik team
Andres
Top achievements
Rank 1
Share this question
or