Radzen Time Picker - only able to set the value from time picker pop-up

Hello!

I have 2 issues with the Radzen DatePicker Component.

  1. I want to use the datepicker in the Time Picker variant, I am setting the TimeOnly to true but the icon doesn't change:
<RadzenDatePicker @bind-Value=@_dateTime
                  Change="UpdateTime"
                  Name="@Name"
                  TValue="DateTime?"
                  ShowTime="true"
                  TimeOnly="true"
                  HourFormat="24"
                  Style="width: 100%;"
                  Disabled="@IsDisabled"
                  DateFormat="HH:mm"
                  ReadOnly="true" />

image

  1. I want the user to only be able to pick a time from the pop-up menu that appears when clicking the icon. Currently he is able to write it directly in the input box.

You need latest version of Radzen.Blazor:

Currently there is no such option however we accept pull requests!

1 Like

Thank you for the quick reply!

I did update the library to the latest version and that took care of the icon!

Regarding the other issue, I ussed this custom CSS to solve it, but I am not
sure if it is the best workaround... might look into making a PR. Thx!

.rz-calendar .rz-inputtext {
    pointer-events: none !important;
}