• What is KendoReact
  • Getting Started
  • Server Components
  • Components
    • Animation
    • Barcodes
    • Buttons
    • Chartsupdated
    • Common Utilities
    • Conversational UIupdated
    • Data Gridupdated
    • Data Query
    • Data Tools
    • Date Inputs
    • Date Math
    • Dialogs
    • Drawing
    • Dropdownsupdated
    • Editor
    • Excel Export
    • File Saver
    • Formupdated
    • Ganttupdated
    • Gauges
    • Indicators
    • Inputsupdated
    • Labels
    • Layoutupdated
    • ListBox
    • ListView
    • Map
    • Notification
    • OrgChartnew
    • PDF Processing
    • PDFViewer
    • PivotGrid
    • Popup
    • Progress Bars
    • Ripple
    • Scheduler
    • ScrollView
    • Sortable
    • Spreadsheetupdated
    • TaskBoard
    • Tooltips
    • TreeList
    • TreeViewupdated
    • Upload
  • Sample Applications
  • Styling & Themes
  • Common Features
  • Project Setup
  • Knowledge Base
  • Changelog
  • Updates
  • Troubleshooting

DateTimePickerProps

Represents the props of the KendoReact DateTimePicker component.

NameTypeDefaultDescription

adaptive?

boolean

Providing different rendering of the popup element based on the screen dimensions.

adaptiveTitle?

string

Specifies the text that is rendered as title in the adaptive popup.

ariaDescribedBy?

string

Identifies the element(s) which will describe the component, similar to HTML aria-describedby attribute. For example these elements could contain error or hint message.

ariaLabelledBy?

string

Identifies the element(s) which will label the component.

calendar?

React.ComponentType<CalendarProps<any>>

Enables the customization or the override of the default Calendar which is rendered by the DateTimePicker (see example).

cancelButton?

boolean

Determines whether to display the Cancel button in the popup.

className?

string

Sets the className of the DateTimePicker.

dateInput?

React.ComponentType<DateInputProps<any>>

Enables the customization or the override of the default DateInput which is rendered by the DateTimePicker (see example).

defaultShow?

boolean

Sets if the calendar popup is opened upon initial render. For more information, refer to the article on uncontrolled components in React.

defaultValue?

"null" | Date

Sets the default value of the DateTimePicker (see example). For more information, refer to the article on uncontrolled components in React.

disabled?

boolean

Determines whether the DateTimePicker is disabled (see example).

fillMode?

"null" | "flat" | "solid" | "outline"

solid

Configures the fillMode of the DateTimePicker.

The available options are:

  • solid
  • outline
  • flat
  • null—Does not set a fillMode className.

focusedDate?

Date

Specifies the initial focusedDate of the Calendar inside the DateTimePicker (see example).

format?

string | DateFormatOptions

Specifies the date format that is used to display the input value (see example).

formatPlaceholder?

DateInputFormatPlaceholder

Defines the descriptions of the format sections in the input field (more information and examples).

id?

string

Specifies the id of the DateTimePicker.

label?

string

Renders a floating label for the DateTimePicker.

max?

Date

Specifies the greatest valid date (see example).

maxTime?

Date

min?

Date

Specifies the smallest valid date (see example).

minTime?

Date

name?

string

Specifies the name property of the input DOM element.

onBlur?

(event: FocusEvent<undefined>) => void

Fires each time any of the DateTimePicker elements gets blurred.

onChange?

(event: DateTimePickerChangeEvent) => void

Fires each time the user selects a new value (see example).

onClose?

(event: DateTimePickerCloseEvent) => void

Fires each time the popup is closed.

onFocus?

(event: FocusEvent<undefined>) => void

Fires each time the user focuses any of the DateTimePicker elements.

onOpen?

(event: DateTimePickerOpenEvent) => void

Fires each time the popup is opened.

placeholder?

"null" | string

Specifies the hint the DateInput displays when its value is null or there is no partial selection. For more information, refer to the article on placeholders.

popup?

React.ComponentType<PopupProps>

Enables the customization or the override of the default Popup which is rendered by the DateTimePicker (see example).

required?

boolean

Specifies if null is a valid value for the component.

This property is part of the FormComponentProps interface.

rounded?

"null" | "small" | "large" | "medium" | "full"

medium

Configures the roundness of the DateTimePicker.

The available options are:

  • small
  • medium
  • large
  • full
  • null—Does not set a rounded className.

show?

boolean

Specifies if the popup will be displayed (see example).

size?

"null" | "small" | "large" | "medium"

medium

Configures the size of the DateTimePicker.

The available options are:

  • small
  • medium
  • large
  • null—Does not set a size className.

steps?

DateInputIncrementalSteps

Specifies the incremental steps of the DateInput and the internal TimePart (see examples).

The available options are:

  • year: Number—Controls the incremental step of the year value.
  • month: Number—Controls the incremental step of the month value.
  • day: Number—Controls the incremental step of the day value.
  • hour: Number—Controls the incremental step of the hour value.
  • minute: Number—Controls the incremental step of the minute value.
  • second: Number—Controls the incremental step of the second value.

tabIndex?

number

Sets the tabIndex property of the DateTimePicker.

title?

string

Sets the title of the input element of the DateTimePicker.

valid?

boolean

Overrides the validity state of the component. If valid is set, the required property will be ignored.

This property is part of the FormComponentProps interface.

validationMessage?

string

Controls the form error message of the component. If set to an empty string, no error will be thrown.

This property is part of the FormComponentProps interface.

validityStyles?

boolean

If set to false, no visual representation of the invalid state of the component will be applied.

This property is part of the FormComponentProps interface.

value?

"null" | Date

Specifies the value of the DateTimePicker (see example).

The value has to be a valid

JavaScript Date instance.

weekNumber?

boolean

Determines whether to display a week number column of the Calendar inside the DateTimePicker (see example).

width?

string | number

Specifies the width of the DateTimePicker.