Print Page | Close Window

Draging event

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=4689
Printed Date: 22 November 2024 at 9:55am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Draging event
Posted By: moe188
Subject: Draging event
Date Posted: 31 July 2006 at 5:40pm
Cry
Hi,
How can I be able to retrieve the event info (StartTime, EndTime, Subject) when I drag the event to another day or another time?
Code/Sample, Please!!!
Thank you,
 



Replies:
Posted By: sserge
Date Posted: 02 August 2006 at 7:34am
Hi,

Look at our sample. Following piece of code disables dragging events between regular and "all day" areas:

Private Sub CalendarControl_BeforeEditOperation(ByVal OpParams As XtremeCalendarControl.CalendarEditOperationParameters, CancelOperation As Boolean)
    If OpParams.Operation = xtpCalendarEO_DragCopy Or _
        OpParams.Operation = xtpCalendarEO_DragMove _
    Then
        If OpParams.DraggingEvent.AllDayEvent <> OpParams.DraggingEventNew.AllDayEvent Then
            CancelOperation = True
        End If
    End If
End Sub


In the same way you can get an access to other dragging event (OpParams.DraggingEvent) properties like StartTime, EndTime, Subject, etc.

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