|
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.
|
|
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!
|
|
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!
|
|
Rank: Newbie Groups: Member
Joined: 9/9/2010 Posts: 5
|
That's great, thanks for this.
|
|
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
|
|
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!
|
|