Print Page | Close Window

CalendarViewEvents

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Calendar
Forum Description: Topics Related to Codejock Calendar
URL: http://forum.codejock.com/forum_posts.asp?TID=3188
Printed Date: 14 May 2024 at 7:15pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: CalendarViewEvents
Posted By: xmastree
Subject: CalendarViewEvents
Date 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

 

 

 

 




Replies:
Posted By: sserge
Date Posted: 10 November 2005 at 3:39am
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



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net