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

[Solved] AllDay strip hides calendar content

2 Answers 92 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Marek Witczak
Top achievements
Rank 1
Marek Witczak asked on 28 Oct 2009, 08:21 AM
Hi,
My question:
I'm adding some all-day appointments to my WeekView. When I don't have OverflowBehavior.Expand set on my RadScheduler control its height stays constant, allday strip height is growing and you could end up with situation that calendar area becoming invisible because of these allday events. Is there a way to set max height or to enable some kind of scrollbar to allday strip?

Thanks
Marek Witczak

2 Answers, 1 is accepted

Sort by
0
Accepted
Peter
Telerik team
answered on 29 Oct 2009, 11:17 AM
Hi Marek,

You can use the following workaround which will create a scroll bar for the all day row if it is more than 100px:
<script type="text/javascript"
    function pageLoad() { 
        if ($telerik.isIE6) { 
            var $ = $telerik.$; 
            var innerFix = $('.RadScheduler .rsAllDayHeader + .rsHorizontalHeaderWrapper .rsInnerFix'); 
            if (innerFix.innerHeight() > 100) 
                innerFix.addClass('rsInnerScrollFix'); 
        }         
    }

<style type="text/css"
    div.RadScheduler .rsAllDayRow > td 
    
         border-width: 0 1px 0 0
    
    .RadScheduler .rsAllDayHeader + .rsHorizontalHeaderWrapper .rsInnerFix  
    
        border-bottom: 1px solid #C5C3AC
        margin-right: 0 !important
        overflow-y: scroll !important
        max-height: 100px
    
    div.RadScheduler .rsInnerScrollFix td 
    
        border-width: 0 1px 0 0
    
    .RadScheduler .rsInnerScrollFix 
    
        border-bottom: 1px solid #C5C3AC
        margin-right: 0 !important
        overflow-y: scroll !important
        height: 100px
    
    </style>

Let us know how it goes.


Kind regards,
Peter
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
Marek Witczak
Top achievements
Rank 1
answered on 30 Oct 2009, 10:31 AM
Dear Peter,
Thanks for your reply, it did work, this solution is exactly what I was looking for!
It turns out that for this particular project I can use OverflowBehavior.Expand, because there is nothing else below the control, however it will be extremely useful for other project, where my scheduler have fixed height.

Thanks
Marek Witczak
Tags
Scheduler
Asked by
Marek Witczak
Top achievements
Rank 1
Answers by
Peter
Telerik team
Marek Witczak
Top achievements
Rank 1
Share this question
or