This topic describes best practices for using the Windows Library for JavaScript DatePicker control. For more information about adding a DatePicker to your app, see Quickstart: Adding a DatePicker.
User experience guidelines
These are recommended practices for using Windows Library for JavaScript DatePicker controls.
| Practice | Description |
|---|---|
|
Use the DatePicker to display dates on forms or when you need to use space efficiently. |
This practice provides the following benefits:
For more information, see Quickstart: Adding a DatePicker. |
|
The DatePicker uses style classes on its outer container element and on the parts for the year, month, and day. |
This practice provides the following benefits:
For more information, see Quickstart: Adding a DatePicker. |
|
The DatePicker can also be displayed vertically. |
This practice provides the following benefits:
For more information, see Quickstart: Adding a DatePicker. |
|
Don't set the year range to more than 200 years. Instead, define a useful range of years by using the minYear and maxYear properties. |
This ensures that your users don't have to scroll through hundreds of entries. For more information, see Quickstart: Adding a DatePicker. |
|
The DatePicker is not a calendar control. It does not support a pop-up grid style display. |
Avoiding this practice ensures that your users do not expect a pop-up calendar. |
Related topics
Build date: 11/29/2012