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

[Solved] Can we use Scheduler as a Planning tool?

1 Answer 94 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Søren Hartig
Top achievements
Rank 2
Søren Hartig asked on 03 Mar 2010, 08:27 AM
Hi,

I'm trying to accomplish this with the Scheduler


The idea is to have the Timeline view for an entire month, and when click next month it will add that to the Timeline (showing 2 month)

The colors is only to verify if that person has available Time to schedule something, and I need to change the Time Column with Person Name Column.

Instead of beating my head in the wall over and over, I thought I could ask here if is there any way to accomplish this reusing the RadScheduler control, as I'm new to this control.


Thank you.

1 Answer, 1 is accepted

Sort by
0
Peter
Telerik team
answered on 08 Mar 2010, 06:25 PM
Hello Søren,

There is a kb article which might help you get started:

http://www.telerik.com/support/kb/aspnet-ajax/scheduler/navigating-through-months-in-timeline-view.aspx

I am not quite sure what exactly you need to achieve, but you can try various modifications with the code from the kb article. For example:

if (RadScheduler1.SelectedView == SchedulerViewType.TimelineView)
       {
           int year = RadScheduler1.SelectedDate.Year;
           //We need to add 3 days to make up for the largest possible difference 
           //in the number of days for any two months(31-28=3). 
           int month = RadScheduler1.SelectedDate.AddDays(3).Month;
           if (e.Command == SchedulerNavigationCommand.NavigateToNextPeriod)
           {
               int numberOfDaysInCurrentAndNextMonth = DateTime.DaysInMonth(year, month) + DateTime.DaysInMonth(year, month + 1);
               RadScheduler1.SelectedDate = new DateTime(year, month-1, 1);
               RadScheduler1.TimelineView.NumberOfSlots = numberOfDaysInCurrentAndNextMonth;
           }           
       }


Kind regards,
Peter
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
Scheduler
Asked by
Søren Hartig
Top achievements
Rank 2
Answers by
Peter
Telerik team
Share this question
or