Class
TelerikDatePicker<T>

The class for the DatePicker component.

Definition

Namespace:Telerik.Blazor.Components

Assembly:Telerik.Blazor.dll

Type Parameters:

T

Syntax:

cs-api-definition
public class TelerikDatePicker<T> : TelerikPickerBase<T>, IComponent, IHandleEvent, IHandleAfterRender, IDisposable

Inheritance: objectComponentBaseBaseComponentTelerikInputBase<T>TelerikPickerBase<T>TelerikDatePicker<T>

Implements: IComponentIDisposableIHandleAfterRenderIHandleEvent

Inherited Members TelerikPickerBase<T>.OnInitializedAsync()TelerikPickerBase<T>.OnAfterRenderAsync(bool)TelerikPickerBase<T>.Dispose()TelerikPickerBase<T>.Open()TelerikPickerBase<T>.Close()TelerikPickerBase<T>.Refresh()TelerikPickerBase<T>.ShowClearButtonTelerikPickerBase<T>.AdaptiveModeTelerikPickerBase<T>.PlaceholderTelerikPickerBase<T>.AutoCompleteTelerikPickerBase<T>.PopupClassTelerikPickerBase<T>.FormatTelerikPickerBase<T>.DebounceDelayTelerikPickerBase<T>.MinTelerikPickerBase<T>.MaxTelerikPickerBase<T>.ChildContentTelerikPickerBase<T>.TitleTelerikPickerBase<T>.SubtitleTelerikPickerBase<T>.ReadOnlyTelerikPickerBase<T>.ShowOtherMonthDaysTelerikPickerBase<T>.FillModeTelerikPickerBase<T>.RoundedTelerikPickerBase<T>.SizeTelerikInputBase<T>.SetParametersAsync(ParameterView)TelerikInputBase<T>.FocusAsync()TelerikInputBase<T>.CascadedEditContextTelerikInputBase<T>.FloatingLabelTelerikInputBase<T>.IdTelerikInputBase<T>.EnabledTelerikInputBase<T>.TabIndexTelerikInputBase<T>.ValueExpressionTelerikInputBase<T>.ValueChangedTelerikInputBase<T>.ValueTelerikInputBase<T>.OnChangeTelerikInputBase<T>.OnBlurTelerikInputBase<T>.AriaLabelTelerikInputBase<T>.AriaLabelledByTelerikInputBase<T>.AriaDescribedByTelerikInputBase<T>.ValidateOnBaseComponent.ShouldRender()BaseComponent.InitLocalizer()BaseComponent.ThrowIfParameterIsNull(object, string)BaseComponent.HaveOptionsChanged(IDictionary<string, object>, IDictionary<string, object>)BaseComponent.GetClassString(params string[])BaseComponent.InvokeAsync<T>(string, params object[])BaseComponent.InvokeAsync<T>(string, CancellationToken, params object[])BaseComponent.InvokeVoidAsync(string, params object[])BaseComponent.InvokeComponentMethodAsync<T>(string, params object[])BaseComponent.InvokeComponentMethodAsync<T>(string, CancellationToken, params object[])BaseComponent.InvokeVoidComponentMethodAsync(string, params object[])BaseComponent.InvokeComponentVoidMethodAsync(string, object)BaseComponent.InvokeDisposeAsync()BaseComponent.StateHasChanged()BaseComponent.RootComponentBaseComponent.ClassComponentBase.OnInitialized()ComponentBase.OnParametersSet()ComponentBase.OnAfterRender(bool)ComponentBase.InvokeAsync(Action)ComponentBase.InvokeAsync(Func<Task>)

Constructors

TelerikDatePicker()

Declaration

cs-api-definition
public TelerikDatePicker()

Properties

AllowCaretMode

Specifies if a caret can be displayed during input (when possible).

Declaration

cs-api-definition
[Parameter]
public bool AllowCaretMode { get; set; }

Property Value

bool

AutoCorrectParts

Specifies if date parts will be auto corrected.

Declaration

cs-api-definition
[Parameter]
public bool AutoCorrectParts { get; set; }

Property Value

bool

AutoSwitchKeys

Specifies which keys should switch date parts.

Declaration

cs-api-definition
[Parameter]
public List<object> AutoSwitchKeys { get; set; }

Property Value

List<object>

AutoSwitchParts

Specifies if date parts will be automatically switched when completed.

Declaration

cs-api-definition
[Parameter]
public bool AutoSwitchParts { get; set; }

Property Value

bool

BottomView

Defines the bottommost view in the popup calendar to which the user can navigate. The default value is Month.

Declaration

cs-api-definition
[Parameter]
public CalendarView BottomView { get; set; }

Property Value

CalendarView

DisabledDates

Specifies a list of dates that can not be selected.

Declaration

cs-api-definition
[Parameter]
public List<DateTime> DisabledDates { get; set; }

Property Value

List<DateTime>

HeaderTemplate

Specifies the header template.

Declaration

cs-api-definition
[Parameter]
public RenderFragment HeaderTemplate { get; set; }

Property Value

RenderFragment

OnCalendarCellRender

Fires each time a calendar cell renders. Use the event to add a custom CSS class to each calendar cell based on its value.

Declaration

cs-api-definition
[Parameter]
public Action<DatePickerCalendarCellRenderEventArgs> OnCalendarCellRender { get; set; }

Property Value

Action<DatePickerCalendarCellRenderEventArgs>

OnClose

Defines the OnClose Event which is fired before the popup of the DatePicker is closed.

Declaration

cs-api-definition
[Parameter]
public EventCallback<DatePickerCloseEventArgs> OnClose { get; set; }

Property Value

EventCallback<DatePickerCloseEventArgs>

OnOpen

Defines the OnOpen Event which is fired before the popup of the DatePicker is opened.

Declaration

cs-api-definition
[Parameter]
public EventCallback<DatePickerOpenEventArgs> OnOpen { get; set; }

Property Value

EventCallback<DatePickerOpenEventArgs>

PopupHeight

Defines the height of the DatePicker's Popup.

Declaration

cs-api-definition
[Parameter]
public string PopupHeight { get; set; }

Property Value

string

PopupWidth

Defines the width of the DatePicker's Popup.

Declaration

cs-api-definition
[Parameter]
public string PopupWidth { get; set; }

Property Value

string

ShowWeekNumbers

Defines if additional week number column is added.

Declaration

cs-api-definition
[Parameter]
public bool ShowWeekNumbers { get; set; }

Property Value

bool

TwoDigitYearMax

Specifies the maximum year to assume to be from the current century when typing two-digit year value. The default value is 68, indicating that typing any value less than 69 will be assumed to be 20xx, while 69 and larger will be assumed to be 19xx.

Declaration

cs-api-definition
[Parameter]
public int TwoDigitYearMax { get; set; }

Property Value

int

View

Specifies the current CalendarView that will be displayed in the picker calendar.

Declaration

cs-api-definition
[Parameter]
public CalendarView View { get; set; }

Property Value

CalendarView

ViewChanged

The handler that will be called when the user navigates to a different CalendarView.

Declaration

cs-api-definition
[Parameter]
public EventCallback<CalendarView> ViewChanged { get; set; }

Property Value

EventCallback<CalendarView>

Width

Specifies the width of the DatePicker.

Declaration

cs-api-definition
[Parameter]
public string Width { get; set; }

Property Value

string

Methods

BuildRenderTree(RenderTreeBuilder)

Declaration

cs-api-definition
protected override void BuildRenderTree(RenderTreeBuilder __builder)

Parameters

__builder

RenderTreeBuilder

Overrides ComponentBase.BuildRenderTree(RenderTreeBuilder)

NavigateTo(DateTime, CalendarView)

Moves the calendar to specific date in a view.

Declaration

cs-api-definition
public void NavigateTo(DateTime date, CalendarView view)

Parameters

date

DateTime

The date to which to navigate.

view

CalendarView

The view to which to navigate.

OnParametersSetAsync()

Declaration

cs-api-definition
protected override Task OnParametersSetAsync()

Returns

Task

Overrides TelerikInputBase<T>.OnParametersSetAsync()