New to Telerik UI for Blazor? Download Free 30-day trial
DateTimePicker - Incremental Steps
- EXAMPLE
- VIEW SOURCE
- EDIT IN TELERIK REPL
- Change Theme
default
Open the popup to see how the time tumblers show every n-th item as per the
DateTimePickerSteps
tag settings. Also, focus the input and use the Up
and Down
arrows to change the selected date and time. They change with the increment steps defined in the code, not by the default 1.
Steps: Year: 2, Month: 3, Day: 5 Hour: 7, Minute: 15, Second: 30
- Incremental-steps.razor
Loading the demo source code...please wait.
Description
The Blazor Date Time Picker component renders lists with the time of day (hours, minutes, seconds) in its popup. You can control whether to see every one of them, or to skip some so the lists are shorter. You can define that through its child DateTimePickerSteps
tag.
The component also lets you change the value of each date segment with the keyboard - you can either type, or use the Up
and Down
arrows. When you use the arrows, the value changes with 1
by default. It will take into account the settings from the DateTimePickerSteps
tag.
This Blazor DateTimePicker Incremental Steps example is part of a unique collection of hundreds of Blazor demos, with which you can see all Telerik UI for Blazor components and their features in action. View the source code of the demos from the library or directly adapt, and edit them and their theme appearance in Telerik REPL for Blazor or ThemeBuilder.