Rank: Newbie Groups: Member
Joined: 9/1/2010 Posts: 6
|
Can I get some guidance on setting up eo:Calendar to use a function for disabled dates.
What I'm going to do is disable all Sundays, any dates in the past, and load an xml file that will disabled any holiday's denoted by the client.
I just can't seem to figure out how to tell the calendar to use a function to determine which dates are disabled.
Thanks again, Ryan
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,194
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,194
|
Hi,
We have post a new build that would allow you to update DisabledDates on the server side while scrolling the DatePicker. Please see your private message for download location.
To use this feature, you must set AutoPostBackOnScroll to true. Once that is set to true, the DatePicker will trigger server side Scroll event when you scroll the calendar. Inside the Scroll event you can use update any of those four properties related to disabled date and the new value will be reflected on the client side. You can check the controls' VisibleDate property to determine which month is currently showing.
Thanks
|