well i am really new to infragistic and rite now i am into the new assignment for creating an appointment and recurrance it. I am working in an exisiting project so here it has already had a recurrence dialog box. and now i want to delete a single occurence from the range. I try to see the sample code but coudlnt see how it is deleting the single occurance from the range. can anyone please provide me how to perform delete a single occurance.
thanks
Hello,
I believe that this topic has already been discussed in the following forum thread:http://forums.infragistics.com/forums/t/64781.aspx.
Please do not hesitate to contact us if you need any additional assistance.
Thanks Brian, i Put isRemoved property= true and it is deleting recurrence from Calendar but its not getting Update into database so on the next reload it will again display the old appointment recurrence. yes isremoved property will remove but i am just stuck how to get that byte value of recurrence so that i can update in my own database. Can you please help me, what to do now
Thanks
Thanks Brian, i also did the same but still not able to delete, in most of the forum you told set
Isremoved property to true.
my Sample Code is below which is almost same in the infragistic sample my concern is do i need to do something with database so that i can see the effect. earlier it will load appointment from database and fill in the calender.
If yes what to do , please help me
case "Delete": { DialogResult result = DialogResult.None; Appointment appointmentToDelete = this.initialAppointment; if (this.initialAppointment.RecurringAppointmentRoot != null) { RecurrenceEditTypeDialog dialog = new RecurrenceEditTypeDialog(appointmentToDelete, RecurrenceEditTypeDialogType.Delete); dialog.ShowDialog(this); RecurrenceEditTypeDialogResult recurrenceResult = dialog.Result; switch (recurrenceResult) { // If the user canceled, don't delete anything. case RecurrenceEditTypeDialogResult.Cancel: { return; } case RecurrenceEditTypeDialogResult.Series: { this._CurrentCalendarInfo.Appointments.Remove(this.initialAppointment.RecurringAppointmentRoot); this.IsModified = false; this.Close(); } break; case RecurrenceEditTypeDialogResult.Occurrence: { result = MessageBox.Show(this, OutlookAppointmentDialog.CONFIRM_DIALOG_CAPTION, OutlookAppointmentDialog.APP_TITLE, MessageBoxButtons.YesNo); if (result == DialogResult.Yes) { this.initialAppointment.IsRemoved = true; this.IsModified = false; this.Close(); } } break; }
Set the IsRemoved property to true.