RadSlider doesn't print?

2 posts, 0 answers
  1. Temp
    Temp avatar
    55 posts
    Member since:
    May 2007

    Posted 05 Oct 2010 Link to this post

    Hi I am trying to print a RadSlider, but it doesn't show up.

    I can replicate this on a standard aspx page. Have attached a picture of normal view and print preview view, and also the code. Have tried two skins default and vista and it happens to both. The print preview picture is exactly what happens when printing to paper as well.

    Can you help me get it to print?

    <%@ Page Language="C#" AutoEventWireup="true" CodeFile="test.aspx.cs" Inherits="bq_test" %>
      
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
      
    <head runat="server">
        <title></title>
    </head>
    <body>
        <form id="form1" runat="server">
        <div>
          
        <telerik:RadScriptManager ID="RSM1" runat="server" />
        <telerik:RadSlider ID="RadSlider1" runat="server" ShowDecreaseHandle="false" ShowIncreaseHandle="false" ItemType="Item" Height="55" Enabled="false" Width="400" Skin="Default">
            <Items>
                <telerik:RadSliderItem Value="1" Text="A" />
                <telerik:RadSliderItem Value="1" Text="B" />
                <telerik:RadSliderItem Value="1" Text="C" />
                <telerik:RadSliderItem Value="1" Text="D" />
                <telerik:RadSliderItem Value="1" Text="-" />
            </Items>
        </telerik:RadSlider>
              
      
        </div>
        </form>
    </body>
    </html>
  2. Tsvetie
    Admin
    Tsvetie avatar
    1517 posts

    Posted 12 Oct 2010 Link to this post

    Hello,
    By default, the "print background color and images" setting in most browsers is set to false. As a result, the images in the slider control are not printed - in case you turn this setting on, the slider will be printed as it appears in the browser.

    In this case, I would recommend that you use an external stylesheet to display another element in the place of RadSlider, when printing the page. You could, for example, add an ASP Label control that shows the value of the slider control and that is hidden by default  - just as the customer described in the following forum thread for RadRating:

    http://www.telerik.com/community/forums/aspnet-ajax/rating/printing-support.aspx

    Greetings,
    Tsvetie
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top