JavaScript/jQuery DateBox - Platform-Specific Value Pickers

The DateBox provides the following controls for picking values.

  • Calendar
    Available when the type property is set to "date" or "datetime".

    DevExtreme DateBox PickerType DatePicker

  • Rollers
    Available when the type property is set to "date", "time" or "datetime".

    DevExtreme DateBox PickerType DatePicker

  • List
    Available when the type property is set to "time".

    DevExtreme DateBox PickerType DatePicker

By default, the picking control and its appearance vary depending on the platform. If you need to force the use of a certain control, specify the pickerType property. In the description of this property, you can find information about which control is the default one for a certain platform. The images above show how the controls look in a generic desktop browser.

For the List picker, you can specify the step of available time values in minutes using the interval property.

JavaScript
  • $(function() {
  • $("#dateBoxContainer").dxDateBox({
  • value: new Date(),
  • type: "time",
  • pickerType: "list",
  • interval: 20
  • });
  • });
See Also