Glossary Item Box

Controls: InputDateTimeInputTimeDate Range ValidatorDate Difference ValidatorDate Compare Validator

Overview: Overview

Client-side API: InputDate client-side API

See Also AspLib component library Send comments on this topic.

InputDate

TextBox for entering dates with possibility of using a pop-up calendar.

 

Features:

 

InputDate view sample:

 

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"

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

You can use keyboard to navigate InputDate.

Use UP and DOWN keys to edit day, month or year.

 

In the pop-up use next keys:

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
Escape Close the pop-up
Enter Select current day and close the pop-up

Controls: InputDateTimeInputTimeDate Range ValidatorDate Difference ValidatorDate Compare Validator

Overview: Overview

Client-side API: InputDate client-side API

 

 


© 2002-2007 Astron Digital. All Rights Reserved.