TimeSpanPicker

Demonstration and configuration of the Radzen Blazor TimeSpanPicker component.

These demos showcase a time span picker with two-way data binding, min/max value constraints with automatic button hiding, inline picker mode, various configuration options, custom format strings, and custom input parsing with ParseInput parameter for flexible time span entry.

Bind the value of TimeSpanPicker link

As all Radzen Blazor input components, the TimeSpanPicker has a Value property which gets and sets the value of the component. Use @bind-Value to get the user input.

Get and Set the value of TimeSpanPicker using Value and Change event. link

Value property can be used to set the value of the component and Change event to get the user input.

Min and Max values link

In this example, you can only set a value between 0 and 12h.
Note that the + and - buttons are hidden because you cannot choose a negative value.

Inline picker link

Use Inline="true" to display the time span picker as an always-visible control without a popup.

Current value: 00:00:00

Various configurations link

Configure step increments, visible components, and other display options for the time span picker.

Field config
Panel config

Time span format link

Use the Format property to customize how the time span value is displayed in the input field.

Custom input parsing link

The ParseInput parameter allows you to use a custom input parsing method.
This way you can accept inputs like '30h 15min' or '-120s', or support more than one input format.

Keyboard Navigation link

The following keys or key combinations provide a way for users to navigate and interact with Radzen Blazor TimeSpanPicker component.

Press this key To do this
Tab Navigate to a TimeSpanPicker component.
Enter Open the popup.
Tab on open popup Navigate forward across available picker components.
Shift + Tab on open popup Navigate backward across available picker components.
Esc in an opened popup Close the popup.
✨ 오늘의 명언 & 마음의 양식

“배우고 때때로 익히면 또한 기쁘지 아니한가.”

— 논어 (고전 명언)
On this page

Demos Configuration

Premium Themes

  • Material 3
  • Material 3 Dark
  • Fluent
  • Fluent Dark

Free Themes

  • Material
  • Material Dark
  • Standard
  • Standard Dark
  • Default
  • Dark
  • Humanistic
  • Humanistic Dark
  • Software
  • Software Dark
An error has occurred. This app may no longer respond until reloaded. Reload 🗙