ClassTelerikCalendar
The Calendar component class.
Definition
Namespace:Telerik.Blazor.Components
Assembly:Telerik.Blazor.dll
Syntax:
public class TelerikCalendar : BaseComponent, IComponent, IHandleEvent, IHandleAfterRender, IDisposable
Inheritance: objectComponentBaseBaseComponentTelerikCalendar
Implements:
Inherited Members
Constructors
TelerikCalendar()
Declaration
public TelerikCalendar()
Properties
AllowReverse
Defines if the end date can precede the start date.
Declaration
[Parameter]
public bool AllowReverse { get; set; }
Property Value
BottomView
Defines the bottommost view to which the user can navigate. Default value is Month.
Declaration
[Parameter]
public CalendarView BottomView { get; set; }
Property Value
CenturyCellTemplate
The template that will be used when rendering date cells in Century View.
Declaration
[Parameter]
public RenderFragment<DateTime> CenturyCellTemplate { get; set; }
Property Value
Date
Sets the date to which the calendar will navigate.
Declaration
[Parameter]
public DateTime Date { get; set; }
Property Value
DateChanged
The handler that will be called when the user navigates to a different date.
Declaration
[Parameter]
public EventCallback<DateTime> DateChanged { get; set; }
Property Value
DecadeCellTemplate
The template that will be used when rendering date cells in Decade View.
Declaration
[Parameter]
public RenderFragment<DateTime> DecadeCellTemplate { get; set; }
Property Value
DisabledDates
Specifies a list of dates that can not be selected.
HeaderTemplate
Specifies the header template.
Declaration
[Parameter]
public RenderFragment HeaderTemplate { get; set; }
Property Value
Max
Sets the maximum allowed date of the calendar.
Min
Sets the minimum allowed date of the calendar.
MonthCellTemplate
The template that will be used when rendering date cells in Month View.
Declaration
[Parameter]
public RenderFragment<DateTime> MonthCellTemplate { get; set; }
Property Value
OnCellRender
Called each time a cell is rendered. Use this to add custom classes to the cell based on the date.
Declaration
[Parameter]
public Action<CalendarCellRenderEventArgs> OnCellRender { get; set; }
Property Value
Orientation
Specifies the orientation of the calendar when multiple views are present. The available vaues are Horizontal (default) and Vertical.
Declaration
[Parameter]
public CalendarOrientation Orientation { get; set; }
Property Value
RangeEnd
The end selected date in CalendarSelectionMode.Range.
Declaration
[Parameter]
public DateTime RangeEnd { get; set; }
Property Value
RangeEndChanged
The handler that will be called when range end changes.
Declaration
[Parameter]
public EventCallback<DateTime> RangeEndChanged { get; set; }
Property Value
RangeStart
The start selected date in CalendarSelectionMode.Range.
Declaration
[Parameter]
public DateTime RangeStart { get; set; }
Property Value
RangeStartChanged
The handler that will be called when range start changes.
Declaration
[Parameter]
public EventCallback<DateTime> RangeStartChanged { get; set; }
Property Value
SelectedDates
Gets or sets the selected dates when multi-selection is enabled.
SelectionMode
Sets the selection mode of the calendar. Default value is Single.
Declaration
[Parameter]
public CalendarSelectionMode SelectionMode { get; set; }
Property Value
ShowOtherMonthDays
Defines if the days from adjacent months are shown.
Declaration
[Parameter]
public bool ShowOtherMonthDays { get; set; }
Property Value
ShowWeekNumbers
Defines if additional week number column is added.
Declaration
[Parameter]
public bool ShowWeekNumbers { get; set; }
Property Value
TopView
Defines the topmost view to which the user can navigate. Default value is Century.
Declaration
[Parameter]
public CalendarView TopView { get; set; }
Property Value
Value
Sets the value of the calendar when single selection is used.
Declaration
[Parameter]
public DateTime Value { get; set; }
Property Value
ValueChanged
The handler that will be called when the user selects date(s).
Declaration
[Parameter]
public EventCallback<DateTime> ValueChanged { get; set; }
Property Value
View
Specifies the current view that will be displayed. See CalendarView.
Declaration
[Parameter]
public CalendarView View { get; set; }
Property Value
ViewChanged
The handler that will be called when the user navigates to a different view.
Declaration
[Parameter]
public EventCallback<CalendarView> ViewChanged { get; set; }
Property Value
Views
Defines the number of views that will be rendered next to each other. Default value is 1.
YearCellTemplate
The template that will be used when rendering date cells in Year View.
Declaration
[Parameter]
public RenderFragment<DateTime> YearCellTemplate { get; set; }
Property Value
Methods
BuildRenderTree(RenderTreeBuilder)
Declaration
protected override void BuildRenderTree(RenderTreeBuilder __builder)
Parameters
__builder
Overrides
NavigateTo(DateTime, CalendarView)
Moves the calendar to specific date in a view.
Declaration
public void NavigateTo(DateTime date, CalendarView view)
Parameters
date
The date to which to navigate.
view
The view to which to navigate.
OnHeaderTitleClick()
Declaration
protected void OnHeaderTitleClick()
OnInitialized()
Declaration
protected override void OnInitialized()
Overrides
OnParametersSet()
Declaration
protected override void OnParametersSet()
Overrides
SetParametersAsync(ParameterView)
Declaration
public override Task SetParametersAsync(ParameterView parameters)
Parameters
parameters
Returns
Overrides