I read a forum entry from Microsoft’s own Zhi-Qiang Ni on how to make a Month view calender extender. I have implemented his version, which shows a From and To date version.
Here’s what Zhi-Qiang Ni produced:
You can see the original forum article here:
The benefit here is that when the Ajax Control Toolkit changes, you won’t need to make modifications to the Ajax Control Toolkit source code to continue with these changes.
Zhi-Qiang Ni produced another version, here:
The code he has put in the click delegate is taken straight out of the calendar extender CalendarBehavior.js file _cell_onclick method and modified.
In the final sample, I take the calendar image from the Calendar Extender samples site and add it to the end of the extender, making it a Calendar Extender popup image.
So now the example looks like this:
You can download Zhi-Qiang Ni’s version implemented here with some minor tweaking and extra sample pages here:
Thanks go to Microsoft’s Zhi-Qiang Ni for this version!