ClassTelerikDateTimePicker<T>
The class for the DateTimePicker component.
Definition
Namespace:Telerik.Blazor.Components
Assembly:Telerik.Blazor.dll
Type Parameters:
T
Syntax:
public class TelerikDateTimePicker<T> : TelerikPickerBase<T>, IComponent, IHandleEvent, IHandleAfterRender, IDisposable
Inheritance: objectComponentBaseBaseComponentTelerikInputBase<T>TelerikPickerBase<T>TelerikDateTimePicker<T>
Implements:
Inherited Members
Constructors
TelerikDateTimePicker()
Declaration
public TelerikDateTimePicker()
Properties
AllowCaretMode
Specifies if a caret can be displayed during input (when possible).
Declaration
[Parameter]
public bool AllowCaretMode { get; set; }
Property Value
AutoCorrectParts
Specifies if date parts will be auto corrected.
Declaration
[Parameter]
public bool AutoCorrectParts { get; set; }
Property Value
AutoSwitchKeys
Specifies which keys should switch date parts.
AutoSwitchParts
Specifies if date parts will be automatically switched when completed.
Declaration
[Parameter]
public bool AutoSwitchParts { get; set; }
Property Value
Format
Specifies the format of the DateInput of the DateTimePicker.
Declaration
[Parameter]
public override string Format { get; set; }
Property Value
Overrides
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
[Parameter]
public Action<DateTimePickerCalendarCellRenderEventArgs> OnCalendarCellRender { get; set; }
Property Value
OnClose
Defines the OnClose Event which is fired before the popup of the DateTimePicker is closed.
Declaration
[Parameter]
public EventCallback<DateTimePickerCloseEventArgs> OnClose { get; set; }
Property Value
OnOpen
Defines the OnOpen Event which is fired before the popup of the DateTimePicker is opened.
Declaration
[Parameter]
public EventCallback<DateTimePickerOpenEventArgs> OnOpen { get; set; }
Property Value
ShowWeekNumbers
Defines if additional week number column is added.
Declaration
[Parameter]
public bool ShowWeekNumbers { get; set; }
Property Value
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
[Parameter]
public int TwoDigitYearMax { get; set; }
Property Value
Methods
BuildRenderTree(RenderTreeBuilder)
Declaration
protected override void BuildRenderTree(RenderTreeBuilder __builder)
Parameters
__builder
Overrides
CloseAsync()
Hides the picker popup.
OnParametersSet()
Declaration
protected override void OnParametersSet()
Overrides