1-888-365-2779
+1-888-365-2779
Try Now
More in this section

Forums / Developing with Sitefinity / RadWindowManager and skins

RadWindowManager and skins

2 posts, 0 answered
  1. Kevin Pipher
    Kevin Pipher avatar
    91 posts
    Registered:
    30 Nov 2005
    01 Mar 2008
    Link to this post
    Hi,

    In my template/masterpage design, I'm using a common RadWindow control so that certain controls throughout the site can pop up messages and urls as needed.

    I noticed today that when I set the skin on the RadWindowManager control, it affects the window skin inside the sitefinity admin area when editing pages. For example, I have set the skin to Vista. Now all of the property editor windows in sitefinity (such as when editing a generic control, etc.) are also Vista skinned.  I tried adding the skin property of only the window and not the windowmanager, but then the built in default skin was shown for both my window and the sitefinity windows.

    Is this by design with the RadWindowManager object? Or could it be a bug? I'm new to the RadWindow controls so I'm not sure of how  to get around this. I want to be able to specify a skin and use the radwindow/windowmanager objects without affecting the sitefinity GUI.

    Here's the snippet of code from my master page:

    <sf:RadWindowManager ID="PopupWindowManager" runat="server" VisibleOnPageLoad="false" 
         Behavior="Close,Maximize,Move,Resize" Skin="Vista" VisibleStatusbar="true" 
         VisibleTitlebar="true" Modal="true"
         <Windows> 
              <sf:RadWindow ID="PopupWindow" runat="server"  
                   OnClientClose="PopupWindow_ClientClose" 
                   Width="700" Height="400" /> 
         </Windows> 
    </sf:RadWindowManager> 

    Any suggestions would be greatly appreciated!

    Thanks,
    Kevin
  2. Pepi
    Pepi avatar
    981 posts
    Registered:
    31 Jan 2017
    04 Mar 2008
    Link to this post
    Hello Kevin,

    As a workaround you could set Visible="false" for the RadWindowManager object and make it visible when the public page is loaded. Here is a simple example:

    .master
    <sf:RadWindowManager ID="PopupWindowManager"  
                         runat="server" 
                         Behavior="Close,Maximize,Move,Resize"  
                         Skin="Vista"  
                         VisibleStatusbar="true"  
                         VisibleTitlebar="true"  
                         Modal="true" 
                         Visible="false">  
                         <Windows>  
                                  <sf:RadWindow ID="PopupWindow" runat="server" OnClientClose="PopupWindow_ClientClose" Width="700" Height="400" />  
                         </Windows>  
    </sf:RadWindowManager> 
    <asp:LinkButton ID="LinkButton1" runat="server" Text="Open Window" OnClick="LinkButton1_Click"></asp:LinkButton> 

    .master.cs
    protected void LinkButton1_Click(object sender, EventArgs e) 
        { 
            this.PopupWindowManager.Visible = true
            this.PopupWindowManager.VisibleOnPageLoad = true
        } 

    i.e. the window will be visible when the user clicks the "Open Window" button on the public page.

    This should fix the problem with the appearance of the RadWindow in Sitefinity edit page mode.

    Let us know how it goes.

    Sincerely yours,
    Pepi
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
2 posts, 0 answered