Hello Andrey,
You can preselect the desired date by setting the Value field of the Calendar. You can read more information on our documentation and you can see a sample code snippet on how to do that below:
<TelerikCalendar SelectionMode="@CalendarSelectionMode.Single"
ValueChanged="@( (DateTime d) => OnBeginDateChangeHandlerAsync(d) )"
Value="@begindate"
@bind-Date="@begindate">
</TelerikCalendar>
@code {
protected DateTime begindate { get; set; } = DateTime.Now.AddDays(-8).Date;
async Task OnBeginDateChangeHandlerAsync(DateTime date)
{
await Task.Delay(20);
begindate = date;
}
}
Regards,
Svetoslav Dimitrov
Progress Telerik
Progress is here for your business, like always.
Read more about the measures we are taking to ensure business continuity and help fight the COVID-19 pandemic.
Our thoughts here at Progress are with those affected by the outbreak.