We use Infragistics 15.2 and a Calendar for showing of our custom events.
They are loaded as binding list of objects via AppointmentsDataBinding as described herehttp://help.infragistics.com/Help/Doc/WinForms/2012.1/CLR2.0/html/Infragistics2.Win.UltraWinSchedule.v12.1~Infragistics.Win.UltraWinSchedule.AppointmentsDataBinding.html
One difference - we do not use members for Reminder and AllProperties.
We ran into a problem loading variances of the Recurring event, which have been created earlier.We store the Recurrence object on the root record and a Recurrence ID on each variance and seems a collection is built correctly. But after binding is occurred the DataKey, as well as a Subject and Description of changed appointments are overriden with the values from Root recurrence record.Please advise what can be a source of problem.
Hi Mike,
I don't store AllProperties data for my events.
Is there a chance to work without having this?
Ok, I'll try to create a simple sample closer to weekends.
Hi Igor,
It's required to use AllProperties to get this working. What happens when you comment that line back in?
If it still doesn't work, we'll need a sample to debug what's causing the issue.
Thanks for an answer.Unfortunatelly, it is quite huge project and it is hard to get some peases of data and make a test app.
I followed an article above.Here is a piece of my code of binding
CalendarInfo.DataBindingsForAppointments.BindingContext = new BindingContext();
CalendarInfo.DataBindingsForAppointments.SubjectMember = "Subject"; CalendarInfo.DataBindingsForAppointments.DescriptionMember = "Description"; CalendarInfo.DataBindingsForAppointments.StartDateTimeMember = "StartDateTime"; CalendarInfo.DataBindingsForAppointments.EndDateTimeMember = "EndDateTime"; CalendarInfo.DataBindingsForAppointments.AllDayEventMember = "AllDayEvent"; CalendarInfo.DataBindingsForAppointments.OwnerKeyMember = "OwnerKey"; CalendarInfo.DataBindingsForAppointments.DataKeyMember = "DataKey"; //Properties when using recurring appointments. CalendarInfo.DataBindingsForAppointments.RecurrenceIdMember = "RecurrenceID"; CalendarInfo.DataBindingsForAppointments.RecurrenceMember = "RecurrenceObject"; CalendarInfo.DataBindingsForAppointments.OriginalStartDateTimeMember = "OriginalStartDateTime"; // All other properties //CalendarInfo.DataBindingsForAppointments.AllPropertiesMember = "AllProperties"; CalendarInfo.DataBindingsForAppointments.SetDataBinding(EventAppointments, string.Empty);
Where the EventAppointments is a BindingList of my objects.
I make following:1. After set the recurrency settings for an event I save the Recurrence object.2. After changing some occurence in series I save this occurence separately with the ID of Recurrence object and the origin start date.After loading the collection is filled properly. The changed event is shown as variance in the series, but values of properties like Subject or Description, and also a DataKey on the created appointment is reverted to values from the Root record.
This occurs right during adding an object to the source collection and creation an appointment.
Is it required to store AllProperties for events?Looks like I could make a trick and assign back valid values of appointment after creation, but it would be better to understand what is wrong.
Please let me know if you have any suggestion.
This doesn't sound to me like something that should be happening, but I'm not certain what could cause it. Are you able to send a reproduction sample that we can look into?
Please let me know if you have any questions.