Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Showing right period when changing view (Read 2087 times)
elwin
Ex Member


Showing right period when changing view
Feb 22nd, 2010 at 8:28am
Print Post  
Hello,

I have a calendar where I can switch views (monthrange, singlemonth, weekrange, timetable (7 days), timetable (1 day))
When switching, the new view must show a period from the previous view. For example: when showing a timetable of 12-03-2010 and switching to a singlemonth, March must be shown.

This is not working all the time. How is this accomplished?

I noticed the weekrange does not have navigation buttons. Is this not possible at all?

Thanks in advance.
  
Back to top
 
IP Logged
 
Meppy
God Member
*****
Offline


MindFusion support

Posts: 1783
Joined: Jul 20th, 2005
Re: Showing right period when changing view
Reply #1 - Feb 22nd, 2010 at 8:43am
Print Post  
The dates displayed in different views come from two different sources, therefore when one of the sources changes, you have to manually update the other source. More specifically, the dates displayed in the Timetable view are obtained from the Calendar.TimetableSettings.Dates collection, while the month in the SingleMonth view is specified by Calendar.Date. Therefore, when switching from Timetable to SingleMonth, you can inspect the first DateTime in Calendar.TimetableSettings.Dates and assign it to Calendar.Date.

As for the WeekRange view, it cannot display navigation buttons, but there is a sample, which illustrates how you can implement unlimited scrolling in this view. The sample is called UnlimitedScrolling.

Regards,
Meppy
« Last Edit: Feb 22nd, 2010 at 10:46am by Meppy »  
Back to top
 
IP Logged
 
elwin
Ex Member


Re: Showing right period when changing view
Reply #2 - Feb 22nd, 2010 at 10:57am
Print Post  
Thanks, it's working.
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint