Blazor DateTimePicker - Overview
- VIEW SOURCE
- EDIT IN TELERIK REPL
- Change Theme
Selected Date and Time
The DateTimePicker component is part of Telerik UI for Blazor, a professional grade UI library with 100+ native components for building modern and feature-rich applications. To try it out sign up for a free 30-day trial.
The Telerik UI for Blazor DateTimePicker component allows users to effortlessly edit and select values directly into its input area or from a calendar popup. It combines date editing functionality with an animated dropdown. The values of the two controls are synchronized to enable further changes of the chosen date.To use the Telerik DateTimePicker in Blazor applications, you simply need to add the <TelerikDateTimePicker> tag in your razor page and bind a DateTime object to the component. The current demo shows a primary example of using the Blazor DateTimePicker component. It displays a popup with selected date/time values, which are then displayed as text. In the DateTimePicker demo configurator, you can adjust the debounce delay property of the UI component, which allows control over the time delay and response to the change of the date/time values.
The DateTimePicker enables users to change the selected value by clicking the rendered arrows. You can set the increment and decrement steps through the nested <DateTimePickerSteps> tag and its parameters. You can also take advantage of the multiple configuration options for formatting, minimum and maximum values, placeholder, tab index and appearance setting parameters, allowing you to easily configure the component size, shape and fill mode.
The Telerik DateTimePicker for Blazor exposes multiple events that let you handle user actions, such as date/time selection and current value confirmation, change and validation.
The DateTimePicker also provides a parameter to show the week number in the Calendar popup.