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

Page break inside Agenda view

2 Answers 31 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
MI87
Top achievements
Rank 1
MI87 asked on 17 Mar 2014, 05:13 PM
Hello

I'd like to add page break inside Scheduler, AgendaView, between each ressource
My configuration is GroupingDirection/vertical and GroupBy/ressource

I try this ...
.RadScheduler_Web20 .rsSubHeader
{
page-break-after : always !important;
}
...but it doesn't work...

I read that it's difficult to add page break inside table (you have to be display: block, float:none ... but it broke the sqheduler...)

Is there a trick I can add tto achieve this ?

Thanks in advance for your help

2 Answers, 1 is accepted

Sort by
0
Accepted
Magdalena
Telerik team
answered on 19 Mar 2014, 12:31 PM
Hello Michel,

There is no trick to achieve page break between RadScheduler resources group. The only way is the mentioned method by  display: block . I have tested the solution and the layout did not break. I am sending a video of the print preview for your reference. The CSS that I have apply is the following
@media print
{
 
    .rsAgendaView > table,
    .rsAgendaView > table > tbody,
    .rsAgendaView > table > tbody > tr,
    .rsAgendaView > table > tbody > tr > td {
        display: block;
    }
 
    .rsAgendaTable + .rsSubHeader {
        page-break-before: always;
    }
}

Further CSS is because of removing the correcting border because of page wrapping
@media print
{
    html .RadScheduler_Default .rsHorizontalHeaderWrapper,
    .rsAgendaTable,
    .rsSubHeader {
        border-width: 0 1px;
        border-style: solid;
        border-color: #828282;
    }
 
    .rsContentWrapper {
        border-bottom: 1px solid #828282;
    }
 
    html .RadScheduler_Default .rsContent {
        border: 0;
    }
 
 
    table, tbody, tr, td {
        border-collapse: collapse;
        padding: 0 !important;
    }
 
}

Regards,
Magdalena
Telerik
 

DevCraft Q1'14 is here! Watch the online conference to see how this release solves your top-5 .NET challenges. Watch on demand now.

 
0
MI87
Top achievements
Rank 1
answered on 19 Mar 2014, 01:11 PM
Thank you very much Magdalena !!!

It works perfectly with our scheduler :-)
Tags
Scheduler
Asked by
MI87
Top achievements
Rank 1
Answers by
Magdalena
Telerik team
MI87
Top achievements
Rank 1
Share this question
or