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
185
Hide Recurring Appointments
posted

Hi,

I have a weekview and template info.

How do I hide all recurring appointments and show only non-recurring ones?

Thank you in advance

  • 21795
    Offline posted

    Hello John,

    Thank you for posting in our forum.

    To hide an appointment you may set its Visible property to false. In order to hide all recurring appointments you need to check IsRecurringAppointmentRoot property of each appointment in the Appointments collection of your UltraCalendarInfo. If this returns true set the Visible property to false. You may use code like this:

    foreach (var appointment in this.ultraCalendarInfo1.Appointments)

    {

           if (appointment.IsRecurringAppointmentRoot)

           {

                  appointment.Visible = false;

           }

    }

    In the attached sample project I have hidden all recurring appointments. Please check my sample and let me know if you need any additional information.

    Thank you contacting us for using Infragistics Components.

    CAS-166299-S4K2G3.zip