I'm rolling my own handlers to a WebScheduleGenericDataProvider, and have been able to create update and delete Appointments, but can't update a recurring event as a Variance. The VarianceAdding event fires and the AppointmentFormPath dialog opens but when the dialog is saved, the VarianceAdded event never fires. Am I missing something?
this.WebScheduleInfo1.VarianceAdding += new VarianceAddingEventHandler(wsInfo_VarianceAdding);
this.WebScheduleInfo1.VarianceAdded += new VarianceAddedEventHandler(wsInfo_VarianceAdded);
protected void wsInfo_VarianceAdding(object sender, CancelableActivityEventArgs e)
{
Log.Msg("wsInfo_VarianceAdding");
e.Activity.DataKey = new Random().Next();
}
protected void wsInfo_VarianceAdded(object sender, ActivityEventArgs e)
Log.Msg("wsInfo_VarianceAdded");
Thanks in advance.
Hello rcrespin,
Thank you for contacting Infragistics!
This message is to let you know that I have received your inquiry and that I am looking into this for you. I will proceed with my research and will follow-up with you on the thread on or before Tuesday.
Thanks.
Hi rcrespin,
I'm looking into this issue and as part of this I wanted to first look at the actual re-occuring event that is scheduled and what it is being updated too. Can you give me an example?
The reason for this is to examine the re-occuring variance as there are constraints on the type of variance that is permitted and what is not allowed as part of the variance. If the variance is not permitted, the VarianceAdded event handler would not fire, which may explain the issue you are experiencing.
As a referrence: http://help.infragistics.com/NetAdvantage/ASPNET/2012.2/CLR4.0/?page=WebSchedule_How_Recurrence_Logic_is_Executed.html
I will await your update.
Thanks!
I had not heard back from you since my previous post and wanted to check back with you to see if you now have what you need.
I will try to get you this today.
Thanks,
Rudy
Hi Rudy,
Sure, just let me know when you are able to send the information requested. I will await your update with these details.
Please let me know if you needed any additional assistance. I had not heard back from you since my previous post and wanted to check back with you to see if you now have what you need.