Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Calendar
  New Posts New Posts RSS Feed - Drag event, get new startdate
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Drag event, get new startdate

 Post Reply Post Reply
Author
Message
WaaZ View Drop Down
Senior Member
Senior Member


Joined: 31 January 2006
Location: United Kingdom
Status: Offline
Points: 103
Post Options Post Options   Thanks (0) Thanks(0)   Quote WaaZ Quote  Post ReplyReply Direct Link To This Post Topic: Drag event, get new startdate
    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

Back to Top
sserge View Drop Down
Moderator Group
Moderator Group


Joined: 01 December 2004
Status: Offline
Points: 1297
Post Options Post Options   Thanks (0) Thanks(0)   Quote sserge Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.219 seconds.