RadWindow loses default icon when render mode is "lightweight"

5 posts, 0 answers
  1. JP
    JP avatar
    9 posts
    Member since:
    May 2006

    Posted 23 Oct 2013 Link to this post

    I noticed that when the radwindow render mode is lightweight, the default icon in the title bar disappears. If anyone else has seen this issue, the fix is quite easy.

    .RadWindow span.rwIcon
    {
        background-position: 0 !important;
    }

    Just an FYI.
    Perhaps this can get fixed.
  2. Bozhidar
    Admin
    Bozhidar avatar
    677 posts

    Posted 24 Oct 2013 Link to this post

    Hello,

    Thanks for contacting us. I have checked the RadWindow LightWeight demo and could not see the issue reproduced. Could you confirm that you have seen the problem at the demo pages, or in a page with your applications? If it is in an application page, than it could related to a CSS override issue.

    The correct background-image position used with the default skin is: background-position: 0 -78px;

    Regards,
    Bozhidar
    Telerik
    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 the blog feed now.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. JP
    JP avatar
    9 posts
    Member since:
    May 2006

    Posted 24 Oct 2013 Link to this post

    I'm sorry,
     I forgot to mention this happens on the Silk skin. I am unaware if other skins may be affected.

    I created a brand new blank project

    <form id="form1" runat="server">
            <telerik:RadScriptManager ID="scriptman" runat="server" />
            <div>
     
                <asp:LinkButton ID="lnkOpen" runat="server" Text="Open Window" />
            </div>
     
            <telerik:RadWindowManager ID="rdWindowManager" runat="server" ReloadOnShow="true" ShowContentDuringLoad="false">
            </telerik:RadWindowManager>
        </form>


    Protected Sub lnkOpen_Click(sender As Object, e As EventArgs) Handles lnkOpen.Click
     
            Dim rw1 As New RadWindow
            rw1.Width = Unit.Pixel(500)
            rw1.Height = Unit.Pixel(400)
            rw1.Title = Title
            rw1.NavigateUrl = "~/DialogContent.aspx"
            rw1.KeepInScreenBounds = True
            rw1.VisibleOnPageLoad = True
            rw1.EnableShadow = True
            rw1.Modal = True
            rw1.Skin = "Silk"
            rw1.RenderMode = RenderMode.Lightweight
     
            rdWindowManager.Windows.Add(rw1)
     
        End Sub

    Thanks
  5. Bozhidar
    Admin
    Bozhidar avatar
    677 posts

    Posted 25 Oct 2013 Link to this post

    Hi,

    Now it is clear what the problem is. The RadWindow manager has also to be lightweigt render mode. Is is well described at RadWindow RenderModes.

    <telerik:RadWindowManager ID="rdWindowManager" RenderMode="Lightweight" runat="server" ReloadOnShow="true" ShowContentDuringLoad="false">
            </telerik:RadWindowManager>


    Regards,
    Bozhidar
    Telerik
    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 the blog feed now.
  6. JP
    JP avatar
    9 posts
    Member since:
    May 2006

    Posted 25 Oct 2013 Link to this post

    Ah, yes. That does solve the problem. Thanks
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017