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

Month view in Timeline

3 Answers 63 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Sanjog
Top achievements
Rank 1
Sanjog asked on 14 Aug 2013, 05:56 PM
I am using radscheduler to show the appointments. i need to display yearly schedule in timeline view. So a slot will be for month and the header will be like 'January, 2013' 'February, 2013' and  so on. So far i have been able to achieve this functionality using the code below:
If e.Command = Telerik.Web.UI.SchedulerNavigationCommand.SwitchToMonthView Then
            e.Cancel = True
 
            rscCalendar.TimelineView.NumberOfSlots = 12
            rscCalendar.TimelineView.SlotDuration = System.TimeSpan.FromDays(30)
            rscCalendar.TimelineView.TimeLabelSpan = 1
            rscCalendar.TimelineView.HeaderDateFormat = "MMMM dddd MM/dd/yyyy"
            rscCalendar.TimelineView.ColumnHeaderDateFormat = "MMMM, yyyy"
            rscCalendar.SelectedDate = "1/1/2013"
end if
 Now, the problem i am having is, assigning the slot duration to number of days in a month. As you can see i am using System.TimeSpan.FromDays(30)now, its assigning the slot duration to 30 days. But i want to
assign the slot duration to individual slots. Is this possible and could you show me how to do
it?

3 Answers, 1 is accepted

Sort by
0
Plamen
Telerik team
answered on 19 Aug 2013, 07:26 AM
Hello Sanjog,

 
Unfortunately this functionality is not supported from RadScheduler because only timeslots with the same duration can be used in it. One possible implementation of YearView can be achieved with several RadSchedulers as for example in it is done here.

Hope this will explain the issue.

Regards,
Plamen
Telerik
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to the blog feed now.
0
Sanjog
Top achievements
Rank 1
answered on 20 Aug 2013, 03:42 PM
Thanks Plamen for your response. I looked the example you showed me. That is not exactly what i want, i want the year view in timeline mode. 
I took care of the issue using different way though. What i did is, i adjusted the appointment start/end dates before binding it depending on the start date of the month column. Since the view shows 12 month at a time, after navigating to next or previous period i reset the selected date to first of the month. 

But i wish year view mode was available in radscheduler.

Thanks,
Sanjog
0
Plamen
Telerik team
answered on 21 Aug 2013, 07:56 AM
Hello Sanjog,

 
Thank you for sharing your workaround of the scenario. As for the other issue you can vote for this feature request here.

Regards,
Plamen
Telerik
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to the blog feed now.
Tags
Scheduler
Asked by
Sanjog
Top achievements
Rank 1
Answers by
Plamen
Telerik team
Sanjog
Top achievements
Rank 1
Share this question
or