CalendarViewEvents |
Post Reply |
Author | |
xmastree
Newbie Joined: 08 November 2005 Status: Offline Points: 14 |
Post Options
Thanks(0)
Posted: 09 November 2005 at 1:30pm |
Hi, do you have any code snippet that you can post to show how to retrieve the event collection for a particular view. ie all the events held in the calender whwen in day,week or month view. I have looked at the object model and calendarviewevents looks like the candidate, but the only interface into the calendar I can find is via GetSelectedEvents. Calendar.ActiveView.GetSelectedEvents but this only returns user selected events is there any way to return the entire event collection for a view?. The documented help suggests this is possible. thanks in advance
|
|
sserge
Moderator Group Joined: 01 December 2004 Status: Offline Points: 1297 |
Post Options
Thanks(0)
|
Hi,
There are no single collection of events for the complete view. Instead you can retrieve separate events collections for each day in the view. See method: CalendarDataProvider.RetrieveDayEven ts If you need just to apply something for them -- iterate days, retrieve and iterate day events and apply an action there. However, if you need to build a single events collection for a view - you should also keep in mind that multiday events are possible and they will be repeated for each day where such event exists. This means that you have to filter repeated events for a single collection. Also you should know how would yo like to proceed recurrence events for that period... -- WBR, Serge |
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |