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
275
Disable the Holidays
posted

Hi,

Is it possible to disable  the date (user not able to select the date) of given Holiday dates in WinGanttView? or if user selected the Holiday then need to give message that Selected Date range having Holiday or Sunday. How to do it?

Parents
No Data
Reply
  • 69832
    Offline posted

    Dates can be disabled by getting a reference to a Day object for the date you want to disable and then setting its Enabled property to false:

    Infragistics.Win.UltraWinSchedule.Day day = this.dayView.CalendarInfo.GetDay( someDate, true );
    day.Enabled = false;

    Note that in cases where large numbers of dates are to be disabled, you should consider using the GetWeek/GetMonth/GetYear methods instead, which will yield better performance.

Children