New to Telerik UI for ASP.NET Core? Start a free 30-day trial
Model Binding
You can bind the Telerik UI for ASP.NET Core TimeDurationPicker to model fields, allowing you to edit and submit model properties directly.
The component is designed to work with the decimal?
(nullable decimal) type. The value is expressed in milliseconds.
Example
csharp
public class TimeDurationPickerViewModel
{
public decimal? Duration { get; set; }
}
Notes
- The recommended binding type is
decimal?
. - The unit of the value is milliseconds.
- Validation attributes such as
[Required]
are supported. - Use the
InputMode()
andColumns()
configuration to define how the duration values are displayed and ensure proper accessibility labeling.labeling may break in some scenarios.