@Html.Tel" /> @Html.Tel" /> @Html.Tel"/>

Vreate two timepicker, one for minutes and one for hours

47 Views Asked by At

I want to create two timepickers to calculate starttime, one for minutes and one for hours separately. Here is my code:

<span class="value">
    @Html.Telerik().TimePickerFor(m => m.StartTime).InputHtmlAttributes(new { @readonly = true })
    <br>
</span>
1

There are 1 best solutions below

0
Christian Gollhardt On

Probably you are looking for the modern component type ComponentType("modern").

@(Html.Kendo().TimePicker()
    .Name("timepicker")
    .Value("10:00 AM")
    .ComponentType("modern")
    .HtmlAttributes(new { style = "width: 100%", title = "timepicker" })
    .DateInput()
)

Here is a demo: https://demos.telerik.com/aspnet-mvc/timepicker/component-type