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
20
How to Block selected dates in XamDateTimeInput
posted

I have infragistics XamDateTimeInput control. I want to prevent users to select some configured dates(Disable the dates). Here is the example which i found in a train booking site. They disabled the past dates.

Disable past date


Thanks

Parents
No Data
Reply
  • 495
    posted

    Hello Muthoot,


    Thank you for your post. I have been looking into it and I created a sample project for you with the functionality you want. Basically I set Disable Dates range (DateTime.MinValue, DateTime.Now.AddDays(-1)) of the XamCalendar of the XamDateTimeInput’s. This disabled all dates from the past until yesterday.

    Please do not hesitate to let me know if you have any further questions on this matter.


    Sincerely,
    Tania

    Infragistics Inc.

    WpfApplicationForXamDateTimeInputs.zip
Children