New to Telerik UI for ASP.NET CoreStart 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() and Columns() configuration to define how the duration values are displayed and ensure proper accessibility labeling.labeling may break in some scenarios.

See Also

In this article
ExampleNotesSee Also
Not finding the help you need?
Contact Support