I have a TelerikTimePicker component and I have set the ShowClearButton="true". The Value property of the component is bound to a nullable DateTime variable (e.g., DateTime? MyTime). If I first input/select a valid time and then clear the value (using the "x" button in the input field), the component is highlighted in red because the .k-invalid class has been added to the HTML markup. However, the value in the TelerikTimePicker is not actually invalid because a null value is allowed.
This is very similar to this issue for the TelerikDateTimePicker: https://feedback.telerik.com/blazor/1660917-datetimepicker-should-not-get-red-border-when-bound-to-nullable-datetime-and-the-input-is-empty
Hello
I want to write a desired text instead of calendar numbers.
For example, as specified in the attached file, I want to write the desired text (8 day of month) instead of the number 8.
I tried through the event:
OnCalendarCellRender="@OnCalendarCellRenderHandler"
but I did not get the result.
Please help me.
Hello
I want to display the desired text in the DatePicker after selecting the date from TelerikDatePicker.
Currently, after selecting the DatePicker, the date is displayed in this field, to which I want to add the desired text.
For example, in the DatePicker field after selecting the date, instead of
07/01/2025
, today is 07/01/2025.
If it is not possible to change the text, at least no text should be displayed in the DatePicker after selecting the date.
Please help me.
Code and image:
<TelerikDatePicker @bind-Value="DatePickerValue" >
</TelerikDatePicker>
@code {
private DateTime DatePickerValue { get; set; } = DateTime.Today;
{
Hi, here's the scenario.
The time picker defaults to 0:00:00 <TimeOnly>:
<TelerikTimePicker ID="txtPlayStart"
@bind-Value="Value.playStart"
Format="H:mm:ss"
T="TimeOnly"
ShowClearButton="true"/>
the user enters a time, saves it, all is well.
He realizes later he entered a bad time and wants to clear it.
He clicks the clear button, and saves it.
Imagine his surprise when nothing changes?
clear doesn't set it back to the default of 0:00:00? there's a visual cue for the user (control is in red), but forcing them to enter 0:00:00 is not really appropriate?
Furthermore, if I catch the OnChange event, it fires when the user clicks the clear button, and it says the time is what it was before the user clicked clear. :/
I'm using the 7.1.0 that just came out yesterday.
I'm coming to realize that many of the Telerik Blazor components are pretty "bare bone" and some some sort of developer wrapper is required to make them user friendly. (Except for "big" ones like the grid.) Is that intentional?
I'm not seeing a way around this short of using the code and building my own custom version that I then have to keep up to date with every new release?
Thanks,
Charles
Hi, my goal is validate a form and focus telerik widget with validation errors.
Now i can find the element search for class "k-invalid" but how to get the widget reference so i can call the FocusAsync() method?
Thanks
When clearing a nullable DateTime-bound TimePicker control (by highlighting the value and hitting delete), why does the control leave the "AM" and also border itself in red?
Is there a way configure the TimePicker control so it doesn't do this?
Hello,
I see there is no way to set TimePicker header in the modal of Telerik UI for Blazor component. The default implementation is not very usable in many situations and I would really like to have my own text and logic there. Is it possible to add it there somehow or how should I proceed?
I am trying to create a break time control using the Telerik Grid and Timepicker controls. I set the break start values Min is the schedule series start time. and Max is the schedule series end time. So setting the break start timepicker Min and Max properties correlate to this schedule time frame to keep the break time within the bounds of the schedule.
When I set break end I want the range in the timepicker to reflect break start to schedule end. For example:
I have a schedule that starts at 0600 and ends at 1430.
My first break I choose the start time 0800 from the range of 0600 to 1430. I want to set the break end time to be chosen from a range of 0800 to 0900. In the image the Break End shows the time range of 0600 to 1430... So basically I want to have the break end range be from the break start time set.
in short
I have tried using the events for the Timepicker to help with this, but I can never get it to update. Is there a way to achieve this?
Razor code:
<TelerikGrid Data="@Appointment.Breaks"
EditMode="GridEditMode.Inline"
OnCreate="@CreateHandler"
OnDelete="@DeleteHandler"
OnUpdate="@UpdateHandler"
>
<GridToolBar>
<GridCommandButton Command="Add" Icon="add">Add</GridCommandButton>
</GridToolBar>
<GridColumns>
<GridColumn Field="Description" Title="Description" FieldType="@typeof(string)" Width="50%" />
<GridColumn Field="BreakStart" Title="Break Start" FieldType="@typeof(DateTime)" DisplayFormat="{0:hh:mm:ss tt}" Width="150px">
<EditorTemplate>
@{
var BreakToEdit = context as Break;
<TelerikTimePicker Format="hh:mm:ss tt"
@bind-Value="@BreakToEdit.BreakStart"
Id="timepickerstart"
DebounceDelay="@DebounceDelay"
Min="@Min"
Max="@Max">
<TimePickerSteps Minute="5"/>
</TelerikTimePicker>
}
</EditorTemplate>
</GridColumn>
<GridColumn Field="BreakEnd" Title="Break End" FieldType="@typeof(DateTime)" DisplayFormat="{0:hh:mm:ss tt}" Width="150px" >
<EditorTemplate>
@{
var BreakToEdit = context as Break;
<TelerikTimePicker Format="hh:mm:ss tt"
@bind-Value="@BreakToEdit.BreakEnd"
Id="timepickerend"
DebounceDelay="@DebounceDelay"
Min="@Min"
Max="@Max" >
<TimePickerSteps Minute="5"/>
</TelerikTimePicker>
}
</EditorTemplate>
</GridColumn>
<GridCommandColumn Width="100px">
<GridCommandButton Command="Edit" Icon="edit"></GridCommandButton>
<GridCommandButton Command="Save" Icon="save" ShowInEdit="true" ></GridCommandButton>
<GridCommandButton Command="Delete" Icon="delete"></GridCommandButton>
<GridCommandButton Command="Cancel" Icon="cancel" ShowInEdit="true"></GridCommandButton>
</GridCommandColumn>
</GridColumns>
</TelerikGrid>
Is there a way to force adaptive rendering ?
We have a blazor app inside a maui build, and when built for windows app, it does not trigger adaptive rendering at the size we need.
Is there a way to force adaptive rendering on, or configure when it will switch ?