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

RadSlider doesn't print?

1 Answer 44 Views
Slider
This is a migrated thread and some comments may be shown as answers.
Temp
Top achievements
Rank 1
Temp asked on 06 Oct 2010, 12:10 AM
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>

1 Answer, 1 is accepted

Sort by
0
Tsvetie
Telerik team
answered on 12 Oct 2010, 07:22 AM
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
Tags
Slider
Asked by
Temp
Top achievements
Rank 1
Answers by
Tsvetie
Telerik team
Share this question
or