M
MBeynon
Guest
Hi, I'm building a demo OE .NET app whereby items are dragged from a grid into a ultraCalendarInfo component; myAppointment = NEW Infragistics.Win.UltraWinSchedule.Appointment(lvdStartTime, lvdEndTime). myAppointment:Owner = ultraDayView1:GetOwnerFromPoint(ultraDayView1
ointToClient(NEW System.Drawing.Point(e:X, e:Y))). ultraCalendarInfo1:Appointments:Add(myAppointment). I want to programatically delete selected appointments from a right click context menu rather than double clicking the appointment to open the info pane (or hitting the delte key); METHOD PRIVATE VOID deleteToolStripMenuItem_Click( INPUT sender AS System.Object, INPUT e AS System.EventArgs ): DEFINE VARIABLE i AS INTEGER NO-UNDO. DEFINE VARIABLE lvlSuccess AS LOGICAL NO-UNDO. DO i = 0 TO ultraCalendarInfo1:SelectedAppointments:Count - 1: ultraCalendarInfo1:SelectedAppointments:Remove(ultraCalendarInfo1:SelectedAppointments:Item). ultraCalendarInfo1:SelectedAppointments:Clear(). END. RETURN. END METHOD. The problem is that neither of the commands above works! Would someone be able to explain what I've done wrong? Many Thanks, Mark.
Continue reading...
Continue reading...