Welcome Guest Search | Active Topics | Sign In | Register

Advanced Disable Date Function Options
RyanD
Posted: Monday, September 20, 2010 4:20:10 PM
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
eo_support
Posted: Monday, September 20, 2010 4:28:55 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,194
Hi,

There isn't a way for you to use a function to tell the Calendar because the Calendar has to have all those information on the client side. There are a number of properties that are related to disabled date:

http://doc.essentialobjects.com/library/1/eo.web.calendar.disableddates.aspx
http://doc.essentialobjects.com/library/1/eo.web.calendar.disableweekenddays.aspx
http://doc.essentialobjects.com/library/1/eo.web.calendar.minvaliddate.aspx
http://doc.essentialobjects.com/library/1/eo.web.calendar.maxvaliddate.aspx

You can use one or more of these properties together.

Thanks!
eo_support
Posted: Tuesday, September 21, 2010 1:00:08 PM
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


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.