Hi there
I’m using the ultraCalendarCombo control and want to disable a couple of dates. For instance, the dates should not be clickable and marked grey.
On the other hand, available dates should be marked bold. Is there any chance to bind a list of allowed dates?
Cheers
Frank Uray
Hello,
In order to achieve your goal you should set UltrCalendarInfo for CalendarInfo property of UltraCalendarCombo, then to disable a day of year you should set:
ultraCalendarInfo1.DaysOfYear[month,day].Enabled = false;
Please let me know if you have any further questions.
Thanks for your answer.I was wondering how am I able to disable all dates? I could loop through all possible dates, I reckon there could be a nicer way to solve that.
Also, how can I precise the year? For instance, the 2011/09/30 should not be available but 2012/09/30 should.
Thanks and best regardsFrank Uray
Hi,
I had the similar problem and solved it with your sample code's help. But this way seems to be very vague and it does not suit the Infragistics control principle of writing less code.
It would be nice if there is a propery to set a list of valid dates or invalid dates.
Regards,Venkatesh
Hello,
I am just checking about the progress of this issue. Let me know If you need my further assistance on this issue?
Thank you for using Infragistics Components.
There is another way to Disable needed dates, whit creation filter and then you could be able to specify exactly dates, which you want to be disabled. I have created a small sample in order to demonstrate this.