Print Page | Close Window

Drag event, get new startdate

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=3593
Printed Date: 27 November 2024 at 2:09pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Drag event, get new startdate
Posted By: WaaZ
Subject: Drag event, get new startdate
Date Posted: 03 February 2006 at 6:51am

Hi,

If I click on a event of type occurence and drag it, i want to get hold of the date and time of the new location the event... which is now an exception.

Normally, the CalendarControl_EventChanged(Object sender, AxXtremeCalendarControl._DCalendarControlEvents_EventChangedEvent e) event is triggered. The following code returns null:

CalendarEvent tmp = CalendarControl.DataProvider.GetEvent(e.eventID);

How can I get the reference of the recurrent object that is created and which is now an exception?

thnx




Replies:
Posted By: sserge
Date Posted: 04 February 2006 at 10:09am
Hi,

Inside EventChanged handler store exception event ID to some global variable, and use it when PatternChanged event is coming.
 
Retrieve recurrence pattern by Pattern ID and iterate exceptions collection to find an event with the exception event ID.
 
This is a known problem and in the next version instead of ID there will be a pointer to event object (or pattern) provided.

--
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