I have a list of owners and each one as is own calendar , but when i write
CalendarInfo.owners["nameOfTheOwner"].CalanderInfo.GetWeek(DateTime.Now).Enable = false;
it disables all owners weeks instead of just the referenced between the quotes.
Is there a way to do that?
I'm using Infragistics .Net advantage 2008 vol 3 clr 2.0.
Thanks
The CalendarInfo property returns the same instance for all Owners. No, there is currently no way to disable a day on a per-owner basis.
Depending on what you want to disallow, you might be able to use other means to prevent certain actions based on the Owner. For example, you could use the IUIElementCreationFilter interface to disable the DayUIElement for a given date and owner, which would prevent double-clicks from being processed, which would in turn prevent the Appointment dialog from appearing.
Hi, i have another question. And If i wanted to disable some of the TimeSlot contained in the UltraDayView Control? i'm using the IUIElementCreationFilter to be able to catch the TimeSlotUIElement , but when i set the Enable Property to false, it still allows me to double click and create an appointment.
I just want to be able to disable some TimeSlots to avoid the creation of new appointments on that particular time.
Thanks in advance.
You could handle and cancel BeforeDisplayAppointmentDialog to prevent the appointment dialog from appearing.