Hi, I have a RadWindow:
It contains an aspx page:
There is an User Control - myUC in the aspx page. And in myUC, there is an RadioButtonList.
My question is how can I maximize RadWindow when user click the RadioButtonList?
I have tried multi ways, add following code to myUC:
But it seems like GetSelectedWindow() can't find RadWindow, so return null.
And also this task can't be done from code-behind.
Any help is appreciated.
| <radW:RadWindowManager ID="RadWindowManager1" runat="server" Skin="Office2007"> |
| <Windows> |
| <radW:RadWindow ID="RadWindow1" runat="server" Left="" NavigateUrl="" SkinsPath="~/RadControls/Window/Skins" |
| Title="" Top="" /> |
| </Windows> |
| </radW:RadWindowManager> |
| RadWindow1.NavigateUrl = "~/Pages/PlotManagerWindow.aspx"; |
My question is how can I maximize RadWindow when user click the RadioButtonList?
I have tried multi ways, add following code to myUC:
| <script type="text/javascript"> |
| function ExecuteWindowCommand() |
| { |
| var oWnd = GetSelectedWindow(); |
| oWnd.Maximize(); |
| } |
| function GetSelectedWindow() |
| { |
| var oManager = GetRadWindowManager(); |
| return oManager.GetActiveWindow(); |
| } |
| </script> |
And also this task can't be done from code-behind.
Any help is appreciated.
