YUI Calendar Control

Jun 3, 2009 at 12:56 PM


I am using YUIASP.NET calendar control for my application. My requirements were:

1. Show dates with events in diffrent color - I have added this by myself.

2. Show dates with events passed in diffrent color - I have added this by myself.

3. Select multiple dates to mark the event dates - Calendar got already this feature.

When I select mutliple dates and press save button, I update my database with selected dates in such a way that I add these dates in DB if not exist already, and delete them if they are already in the database.

At this point I have found a problem in the control:

When I select dates and press save button, dates are added in DB. If I press the save button again these dates removed from DB. Even after pressing save button I unselect dates using objCalendar.SelectedDates.Clear(); method. Apparently no date is selected on the calendar after post back.

I could not understand why does control keep holding previously selected dates even I use above said clear method, as well as I tried to do  objCalendar.SelectedDates=null;

Further more after post back, if I select another date and press save, only the date I selected this time is available on server - which is exactly the way it should be.

Can anybody help me please !

Jun 4, 2009 at 7:06 AM

Is it possible to send an example project demonstrating the bug?