I have gone through infragistic forum and find related answer but in my case.
1. Appointment is load from Store Procedure into Calendar
2. Appointment is also Save from Store Procedure
now i am having problem with Update and Delete of Occurance though it works fine for Series.
when i delete the Occurance and put isRemoved= true it works fine but this thing is not reflect into the database , what i need to do now into database level so that next time it will not show the deleted appointment. though in Infragistic sample it is inserting a new apppintment for Occurance (update or delete) case.
Can anyone Please help me i am really stuck with this thing.
Thanks in advance
Thanks for the Sample, but in my case i am trying to implement infragistic sample frmAppointmentDialog2007 on which Custom Appointment Dialog is opened. I am still not able to do one thing. Suppose there is an appointment then i click and open the occurance. now if i want to delete it i can use this code
if ( result == DialogResult.Yes ) { this.initialAppointment.IsRemoved = true; this.modified = false; this.Close(); }
this code is able to remove that occurance from the calendar but how can I update on this event ,dont i need to save this delete event somewhere. like below code can remove the appointment from the calendar
if (this.OnAppointmentDeleted != null) { AppointmentDeletedEventArgs args = new AppointmentDeletedEventArgs(this.initialAppointment); OnAppointmentDeleted(this, args); } if (this._CurrentCalendarInfo.Appointments.Contains(this.initialAppointment)) { this._CurrentCalendarInfo.Appointments.Remove(this.initialAppointment); } this.IsModified = false;
i still could not understand how to remove that occurance from the Appointment. can you please clear my doubts thanks
Hello ,
What you could do in your case is your stored procedure to retrieve you a data set with the schema like this in the attached sample. Then you could add a handler for RowChanged, TableNewRow and RowDeleting event for the data table which contains information about appointment, in order to know when you should update your database.
Please let me know if you have any further questions.
I have created a support ticket for you in our system, in order to be able to investigate this further for you. The support ticked id is CAS-82976-4SXKHV. I will update you via the case as soon as I have information for you.
Thank you.