Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
360
How can i disable days or months in the calendar by owner?
posted

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

Parents
No Data
Reply
  • 69832
    Offline posted

    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.

Children