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

Rad Scheduler Initial View, Only one Hour

2 Answers 71 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Kevin Wolf
Top achievements
Rank 1
Kevin Wolf asked on 04 Jun 2008, 11:35 AM
Hello - I've been fussing with this a bit and I just can't seem to figure out what's going on.

I'm using an ASP.NET AJAX Tool Kit TabContainer and on an initial non-visible tab, I have the scheduler control  The problem I'm experiencing is that initially the Scheduler only shows one hour on the day calendar.  As soon as I move forward or back days or switch view types, it resizes and shows full schedule.

Any thoughts of what I can try?

Thanks in advance

Kevin D. Wolf
Tampa, FL

2 Answers, 1 is accepted

Sort by
0
T. Tsonev
Telerik team
answered on 05 Jun 2008, 12:13 PM
Hi Kevin,

Normally, RadScheduler adjusts its size after the page load. In your scenario this is not possible as it is not initially visible. You can work around this by either specifying fixed height for the RadScheduler (with the Height property) or calling the repaint() client-side method after the tab has been shown.

The ActiveTabChanged event seems right for the task:

<script type="text/javascript"
    function tabChanged(sender, eventArgs) 
    { 
        var schedulerTabIndex = X
        if (sender.get_activeTabIndex() == schedulerTabIndex) 
        { 
            var scheduler= $find('<%= RadScheduler1.ClientID %>'); 
            scheduler.repaint(); 
        } 
    } 
</script> 
 
<cc1:TabContainer ... OnClientActiveTabChanged="tabChanged"
    ... 
</cc1:TabContainer> 


Best wishes,
Tsvetomir Tsonev
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Kevin Wolf
Top achievements
Rank 1
answered on 05 Jun 2008, 12:35 PM
Worked like a charm with the client side script.

Just an FYI - I did try to manually set the height of the schedule in the ASP.NET <telerik:RadScheduler  tag and that didn't seem to work but the client script worked great!

Thank you for your prompt attention.

Kevin... 
Tags
Scheduler
Asked by
Kevin Wolf
Top achievements
Rank 1
Answers by
T. Tsonev
Telerik team
Kevin Wolf
Top achievements
Rank 1
Share this question
or