Blazor DateInput - Overview
- EDIT IN TELERIK REPL
- Change Theme
The DateInput component is part of Telerik UI for Blazor, a professional grade UI library with 110+ 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 DateInput component enables you to enter date/time via direct input. It provides separate sections for day, month, year, hours and minutes. Furthermore, you can control the date and time format by using standard format strings.
To use the Telerik Date Input component in Blazor applications, you simply need to add the <TelerikDateInput> tag in your razor page and bind the control to a DateTime object. The current demo shows a primary example of using the Blazor DateInput component by selecting a travel date, which is then displayed as text. In the 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 values.
The DateInput for Blazor can increase/decrease the values for each segment of the date (year, month, day) with a different step when the Up or Down arrows are pressed. Additionally, you can provide configuration options for id, value, custom format, minimum and maximum values, tab index, placeholder, disabling the component and event that will trigger validation.
The Telerik UI for Blazor DateInput comes with built-in ability to react to the chosen culture where format strings are involved, so same Format may render different things depending on the user culture.
The DateInput also exposes multiple events, such as OnChange, ValueChanged and OnBlur, that enable easy handling of logic related to user interactions with the component.