Thursday, July 9, 2009

Add time selector to .NET Ajax Control Toolkit 1.1 Calendar Extender



Hey folks,
I recently had a project that called for the additon of a time selector to the Ajax Control Toolkit 1.1 Calendar Extender control . This version is only a 24hr time selector, so no AM - PM, but my next version will include this.

Added Properties:
DateOnly - Boolean: Turns the time selector on and off. Default is true.

Files Changed:
CalendarBehavior.js
CalendarExtender.cs

Getting it working:
Option 1:
  • Download the entire source for the Ajax Control Tool kit from here .
  • Replace the above files under the calendar folder in the AjaxControlTookit project.

Option 2:

Add a reference to the DLL in your project.

Control Behavior:

If DateOnly is true, the time selector will hide.If no date is assigned to the textbox linked to to the control the set button will not show.


Download It

No comments: