Welcome Guest Search | Active Topics | Sign In | Register

DatePicker Dynamic Disabled Dates Options
gammadata
Posted: Tuesday, September 21, 2010 8:05:14 AM
Rank: Newbie
Groups: Member

Joined: 9/9/2010
Posts: 5
Hello,

We are using the DatePicker control and are looking to populate disabled dates dynamically as the user scrolls through the months of the calendar.

At the moment we are using the following functionality:

1) User scrolls to the next month in the calendar
2) In the scroll event when post back occurs, a call is made on a database to get disabled dates for that month
3) Each of these dates are then added to the DisabledDates() array of the date picker control
4) Day render is then called for each day

However, at point 4, although some days are marked as unselectable and disabled, they do not appear in the drop down calendar this way (the only way to do this is to select a date in the new month, close and then reopen the drop down calendar by clicking on the calendar icon - disabled dates are then shown correctly).

It seems that the only time the dropdown calendar is updated is to click on the calendar icon. Is there any way to update the disabled dates as the user scrolls?

Any help is greatly appreciated.
eo_support
Posted: Tuesday, September 21, 2010 8:32:54 AM
Rank: Administration
Groups: Administration

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

I don't believe the refreshed DisabledDates collection is passed down to the client when Scroll is called. We will look into it and see if we can fix that.

We will update this thread again as soon as we have an update.

Thanks!
eo_support
Posted: Tuesday, September 21, 2010 1:01:12 PM
Rank: Administration
Groups: Administration

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

We have posted a new build that would support this. Please see your private message for more details.

Thanks!
gammadata
Posted: Wednesday, September 22, 2010 4:26:25 AM
Rank: Newbie
Groups: Member

Joined: 9/9/2010
Posts: 5
That's great, thanks for this.
Ash
Posted: Thursday, December 23, 2010 5:06:22 AM
Rank: Newbie
Groups: Member

Joined: 8/12/2010
Posts: 4
Hi,

I've been trying to do something similar I have the new build but DisabledDates collection still doesn't seem to be posting back. Is there something i need to do inorder to enable this?

Cheers
eo_support
Posted: Thursday, December 23, 2010 9:01:29 AM
Rank: Administration
Groups: Administration

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

I believe the original question is not about "posting back DisabledDates". It's about updating DisabledDates in the date picker's Scroll event. So your problem might be different. We will be happy to take a look if you can try to isolate the problem into a test page and also describe the problem in detail.

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.