Glossary Item Box

Overview: Overview

Controls: ScheduleInputDateInputDateTimeDate Range ValidatorDate Difference ValidatorDate Compare Validator

Client-side API: Calendar client side API

See Also AspLib component library Send comments on this topic.

Calendar

Calendar is integrated Calendar and Schedule control, supporting a wide variety of date and date range selection types, day customization.

 

Features:

 

Calendar view sample:

 

Selected day is highlited, holidays are red, next and previous month's days are light-green.

 

Value property's type is Nullable System.DateTime type. So if you need to get DateTime value use InputDate.Value.Value property.

If InputDate is empty then InputDate.Value.HasValue == false and InputDate.Value.Value == null

 

Control can show week numbers in separate column if ShowWeekNumbers="true"

 

Date-range validation

You can use Calendar  date-range validation. If any date is is not in date range or is disabled (over special dates collection) that day is marked as inaccessible.

AJAX behavior

Control has AJAX behavior. It may loads collection of special dates only after selecting next or previous month or year, not during page rendering - it decreases traffic.

Only set property:

EnableAjaxBehavior=True 

Show multiple months

You can display multiple months in various layouts by setting the public properties Rows and MonthsPerRow and set appearance of the control by setting properties MonthPadding and MonthSpacing.


EnlargeClick to enlarge

You can play with the provided dropdowns to change the view of the calendar. You can set the ShowMonthsYearsLists property of Calendar to True in order to show dropdown boxes for month and year selection in title. You can easily jump into any month or year without navigating through each month.

If property ShowMultiMonthTitle equals True then contr5ol will displays title over all months in multi-month mode.

Keyboard navigation

A critical requirement for software accessibility is keyboard support as a complete alternative to pointing devices (mouse, etc.). Use keyboard to navigate calendar:

Keyboard key Action
Left Move to the previous day
Up Move to the previous week
Right Move to the next day
Down Move to the next week
Enter Select current day

Overview: Overview

Controls: ScheduleInputDateInputDateTimeDate Range ValidatorDate Difference ValidatorDate Compare Validator

Client-side API: Calendar client side API

 

 


© 2002-2007 Astron Digital. All Rights Reserved.