5 Answers, 1 is accepted
0
Accepted
Hello,
I suggest you use @media css rule to apply specific styles to the listbox when printing. You just need to add the following css styles to your page:
Regards,
Yana
the Telerik team
I suggest you use @media css rule to apply specific styles to the listbox when printing. You just need to add the following css styles to your page:
<style type=
"text/css"
>
@media
print
{
.RadListBox {
height
:
auto
!important
; }
.RadListBox .rlbGroup {
position
:
static
!important
; }
}
</style>
Regards,
Yana
the Telerik team
Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.
0
Lenny_shp
Top achievements
Rank 2
answered on 24 Feb 2011, 11:22 PM
I have a long list that's a couple of pages long, why is it that with or without the above CSS, the list seems to want to print from beginning of a page instead of in the middle of the page? This leaves a big blank area for the printed page that the listbox control is in.
0
Hi Lenny,
Can you send us a simple page showing the exact layout? Thanks
Regards,
Yana
the Telerik team
Can you send us a simple page showing the exact layout? Thanks
Regards,
Yana
the Telerik team
Registration for Q1 2011 What’s New Webinar Week is now open. Mark your calendar for the week starting March 21st and book your seat for a walk through all the exciting stuff we ship with the new release!
0
Lenny_shp
Top achievements
Rank 2
answered on 25 Feb 2011, 09:22 PM
<div id="ucFeeChangeFeeRequest_lstSubAccountDest" class="RadListBox RadListBox_Default" style="width:380px;">
<div class="rlbGroup rlbGroupRight">
<ul class="rlbList">
<li id="ucFeeChangeFeeRequest_lstSubAccountDest_i0" class="rlbItem"><span class="rlbText">list item1</span></li>
</ul>
lots of items here
</div><input id="ucFeeChangeFeeRequest_lstSubAccountDest_ClientState" name="ucFeeChangeFeeRequest_lstSubAccountDest_ClientState" type="hidden" />
</div>
The problem would only occur if there are many items spanning pages, as if there is a page-break-before was included.
Ah, according to http://www.w3.org/TR/CSS2/sample.html ul has default of page break.
<div class="rlbGroup rlbGroupRight">
<ul class="rlbList">
<li id="ucFeeChangeFeeRequest_lstSubAccountDest_i0" class="rlbItem"><span class="rlbText">list item1</span></li>
</ul>
lots of items here
</div><input id="ucFeeChangeFeeRequest_lstSubAccountDest_ClientState" name="ucFeeChangeFeeRequest_lstSubAccountDest_ClientState" type="hidden" />
</div>
The problem would only occur if there are many items spanning pages, as if there is a page-break-before was included.
Ah, according to http://www.w3.org/TR/CSS2/sample.html ul has default of page break.
ul { page-break-before: avoid } I tried changing this but it still page breaks before start of ul.ul { page-break-before: auto } orul { page-break-before: }
0
Hi Lenny,
Thank you for sending the explanation.
I've attached a simple page to demonstrate how to fix it, please download it and give it a try.
Kind regards,
Yana
the Telerik team
Thank you for sending the explanation.
I've attached a simple page to demonstrate how to fix it, please download it and give it a try.
Kind regards,
Yana
the Telerik team
Registration for Q1 2011 What’s New Webinar Week is now open. Mark your calendar for the week starting March 21st and book your seat for a walk through all the exciting stuff we ship with the new release!