I have a window manager on my page. When I open the window the first time all of the default properties are enforced (behaviors, etc).
When I try to launch the window the second time none of the behaviors are enforced (there are no buttons at all).
Here is my javascript:
| <script> |
| function MenuClickHandler(argCommandName) |
| { |
| var oManager = $find("<%=rwmMainWindowManager.ClientID%>"); |
| switch (argCommandName) |
| { |
| case 'AddCustomer': |
| oManager.open('NewCustomer.aspx',argCommandName); |
| break; |
| case 'AddUser': |
| oManager.open('NewUser.aspx',argCommandName); |
| break; |
| case 'EditUser': |
| oManager.open('EditUser.aspx',argCommandName); |
| break; |
| case 'MinimizeAll': |
| oManager.minimizeAll(); |
| break; |
| case 'Cascade': |
| oManager().cascade(); |
| break; |
| case 'Tile': |
| oManager().tile(); |
| break; |
| default: |
| alert("Invalid Command Specified - '" + argCommandName + "'"); |
| break; |
| } |
| } |
| function QuickNavHandler(sender, e) |
| { |
| MenuClickHandler(sender.CommandName); |
| return false; |
| } |
| </script> |
Here is the window manager:
| <telerik:RadWindowManager ID="rwmMainWindowManager" runat="server" Skin="Vista" EnableEmbeddedSkins="True" DestroyOnClose="true" |
| VisibleOnPageLoad="false" OffsetElementID="divWindowLoader" VisibleStatusbar="False" ReloadOnShow="True" /> |
This does not occur if I do not set "DestroyOnClose" to "True".