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

RadWindow loses default icon when render mode is "lightweight"

4 Answers 112 Views
Window
This is a migrated thread and some comments may be shown as answers.
JP
Top achievements
Rank 2
JP asked on 23 Oct 2013, 01:53 PM
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.

4 Answers, 1 is accepted

Sort by
0
Bozhidar
Telerik team
answered on 24 Oct 2013, 11:23 AM
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.
0
JP
Top achievements
Rank 2
answered on 24 Oct 2013, 12:51 PM
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
0
Bozhidar
Telerik team
answered on 25 Oct 2013, 10:53 AM
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.
0
JP
Top achievements
Rank 2
answered on 25 Oct 2013, 12:29 PM
Ah, yes. That does solve the problem. Thanks
Tags
Window
Asked by
JP
Top achievements
Rank 2
Answers by
Bozhidar
Telerik team
JP
Top achievements
Rank 2
Share this question
or