Class
TelerikDateTimePicker<T>

The class for the DateTimePicker component.

Definition

Namespace:Telerik.Blazor.Components

Assembly:Telerik.Blazor.dll

Type Parameters:

T

Syntax:

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

Inheritance: objectComponentBaseBaseComponentTelerikInputBase<T>TelerikPickerBase<T>TelerikDateTimePicker<T>

Implements: IComponentIDisposableIHandleAfterRenderIHandleEvent

Inherited Members TelerikPickerBase<T>.OnInitializedAsync()TelerikPickerBase<T>.OnAfterRenderAsync(bool)TelerikPickerBase<T>.Dispose()TelerikPickerBase<T>.Open()TelerikPickerBase<T>.Refresh()TelerikPickerBase<T>.ShowClearButtonTelerikPickerBase<T>.AdaptiveModeTelerikPickerBase<T>.PlaceholderTelerikPickerBase<T>.AutoCompleteTelerikPickerBase<T>.PopupClassTelerikPickerBase<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>.OnParametersSetAsync()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.OnAfterRender(bool)ComponentBase.InvokeAsync(Action)ComponentBase.InvokeAsync(Func<Task>)

Constructors

TelerikDateTimePicker()

Declaration

cs-api-definition
public TelerikDateTimePicker()

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

Format

Specifies the format of the DateInput of the DateTimePicker.

Declaration

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

Property Value

string

Overrides TelerikPickerBase<T>.Format

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<DateTimePickerCalendarCellRenderEventArgs> OnCalendarCellRender { get; set; }

Property Value

Action<DateTimePickerCalendarCellRenderEventArgs>

OnClose

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

Declaration

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

Property Value

EventCallback<DateTimePickerCloseEventArgs>

OnOpen

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

Declaration

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

Property Value

EventCallback<DateTimePickerOpenEventArgs>

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

Width

Specifies the width of the DateTimePicker.

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)

Close()

Closes the component.

Declaration

cs-api-definition
public override void Close()

Overrides TelerikPickerBase<T>.Close()

CloseAsync()

Hides the picker popup.

Declaration

cs-api-definition
public Task CloseAsync()

Returns

Task

OnParametersSet()

Declaration

cs-api-definition
protected override void OnParametersSet()

Overrides ComponentBase.OnParametersSet()