Class TelerikDateTimePicker<T>
The class for the DateTimePicker component.
Inheritance
Inherited Members
Namespace: Telerik.Blazor.Components
Assembly: Telerik.Blazor.dll
Syntax
public class TelerikDateTimePicker<T> : TelerikPickerBase<T>, IDisposable, ILabelableInput, IFormatPlaceholderContainer, IStepsContainer
Type Parameters
T
|
Constructors
TelerikDateTimePicker()
Declaration
public TelerikDateTimePicker()
Properties
AllowCaretMode
Specifies if a caret can be displayed during input (when possible).
Declaration
public bool AllowCaretMode { get; set; }
Property Value
System.Boolean
|
AutoCorrectParts
Specifies if date parts will be auto corrected.
Declaration
public bool AutoCorrectParts { get; set; }
Property Value
System.Boolean
|
AutoSwitchKeys
Specifies which keys should switch date parts.
Declaration
public List<object> AutoSwitchKeys { get; set; }
Property Value
System.Collections.Generic.List<System.Object>
|
AutoSwitchParts
Specifies if date parts will be automatically switched when completed.
Declaration
public bool AutoSwitchParts { get; set; }
Property Value
System.Boolean
|
Format
Specifies the format of the DateInput of the DateTimePicker.
Declaration
public override string Format { get; set; }
Property Value
System.String
|
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
public Action<DateTimePickerCalendarCellRenderEventArgs> OnCalendarCellRender { get; set; }
Property Value
System.Action<DateTimePickerCalendarCellRenderEventArgs>
|
OnClose
Defines the OnClose Event which is fired before the popup of the DateTimePicker is closed.
Declaration
public EventCallback<DateTimePickerCloseEventArgs> OnClose { get; set; }
Property Value
Microsoft.AspNetCore.Components.EventCallback<DateTimePickerCloseEventArgs>
|
OnOpen
Defines the OnOpen Event which is fired before the popup of the DateTimePicker is opened.
Declaration
public EventCallback<DateTimePickerOpenEventArgs> OnOpen { get; set; }
Property Value
Microsoft.AspNetCore.Components.EventCallback<DateTimePickerOpenEventArgs>
|
ShowWeekNumbers
Defines if additional week number column is added.
Declaration
public bool ShowWeekNumbers { get; set; }
Property Value
System.Boolean
|
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
public int TwoDigitYearMax { get; set; }
Property Value
System.Int32
|
Width
Specifies the width of the DateTimePicker.
Declaration
public string Width { get; set; }
Property Value
System.String
|
Methods
BuildRenderTree(RenderTreeBuilder)
Declaration
protected override void BuildRenderTree(RenderTreeBuilder __builder)
Parameters
Microsoft.AspNetCore.Components.Rendering.RenderTreeBuilder
__builder
|
Close()
Closes the component.
Declaration
public override void Close()
Overrides
CloseAsync()
Hides the picker popup.
Declaration
public Task CloseAsync()
Returns
System.Threading.Tasks.Task
|
OnParametersSet()
Declaration
protected override void OnParametersSet()