
Hi,
when setting DropDownList's DefaultText (e.g. to a "none" string) then the component displays an additional entry which stands for a null/default value (in other words: it acts as a clear button).
But the OnChange event does not fire when selecting that entry.
Using: Telerik.UI.for.Blazor.Trial (2.14.1)
Regards
Kasimier Buchcik
Hi
The problem I am having is, that when I select a HOUR in the list of hours, by clicking on it with the mouse, the hour is updated shortly and then reset to the hours of the DateTime send into the control. That is, the hour in the text box is set for the selected one, and then reset half a second later. The dropdown with hours 'rolls' back to the initial hour. There is the same problem for the Minutes and Seconds
When trying the component on the Telerik Blazor DEMO site, that works just fine, but in my solution (running on my own PC which is setup for the Danish Language and Regional settings) it does as above. My demo component for testing this is quite simple:
@page "/CodeSamples"
<label for="timepicker">Time:</label>
<TelerikTimePicker Min="@Min" Max="@Max" Format="HH:mm:ss" @bind-Value="@selectedTime" Id="timepicker"></TelerikTimePicker>
<div class="pt-4">The selected time is: @selectedTime?.ToLongTimeString()</div>
@code {
public DateTime Min = new DateTime(1900, 1, 1, 10, 0, 0);
public DateTime Max = new DateTime(1900, 1, 1, 20, 0, 0);
private DateTime? selectedTime = DateTime.Now;
}
Can you help me? :-)
Microsoft.AspNetCore.Components.Server.Circuits.RemoteRenderer: Warning: Unhandled exception rendering component: Could not find 'TelerikBlazor' in 'window'.Error: Could not find 'TelerikBlazor' in 'window'. at Anonymous function (https://localhost:44365/_framework/blazor.server.js:8:28059) at Array.prototype.forEach (native code) at p (https://localhost:44365/_framework/blazor.server.js:8:28010) at Anonymous function (https://localhost:44365/_framework/blazor.server.js:8:28731) at Promise (native code) at e.jsCallDispatcher.beginInvokeJSFromDotNet (https://localhost:44365/_framework/blazor.server.js:8:28701) at Anonymous function (https://localhost:44365/_framework/blazor.server.js:1:19139) at Array.prototype.forEach (native code) at e.prototype.invokeClientMethod (https://localhost:44365/_framework/blazor.server.js:1:19117) at e.prototype.processIncomingData (https://localhost:44365/_framework/blazor.server.js:1:17160)
Is it possible to show the weeknumbers in a DatePicker?
We work most of the time with weeknumbers instead of a date so people know they have to select e.g. the monday of week 27 instead of 29-06-2020
Thanks,
Maurice
Hello,
I need to update some greed each time a user clicks on calendar. Now we have two events in calendar.
The OnChange event fires on date input focus loses, so it not helps me.
The ValueChanged works fine but if I type date manually then I lose date input focus on grid update and cannot finish typing. Like, I try to change 6/1/2020 to 6/11/2020. It works if I fast enough but I would prefer to disable the date input field and have the calendar available only. Is it possible to do?
Another event OnClick on calendar would help but looks like it is not exist.
Thanks.
Hi,
I noticed that the context variable in templates is of type object (e.g. in the drop-down-list, grid-column).
Is this due to historical reasons? Could this be changed to a generically typed context?
Regards
Kasimier Buchcik
If I have a grid like
<TelerikGrid @ref="@GridRef" Data="@GridData"> ...... </TelerikGrid>private ObservableCollection<WrittenVM> GridData { get; set; }public TelerikGrid<WrittenVM> GridRef { get; set; }
Everything works and GridRef gets a value
If I use this code
@if (GridData == null) { <p><em>Loading...</em></p> } else { <TelerikGrid @ref="@GridRef" Data="@GridData"> ...... </TelerikGrid>}private ObservableCollection<WrittenVM> GridData { get; set; }public TelerikGrid<WrittenVM> GridRef { get; set; }
GridRef doesn't get a value and stays null
The loading text is displayed but I use
protected override async Task OnAfterRenderAsync(bool firstRender) { if (firstRender) {..... if (GridRef !=null) { await GridRef.SetState(desiredState); } StateHasChanged(); } }
To make a custom state of the grid