New to Telerik UI for BlazorStart a free 30-day trial

The Calendar component class.

Definition

Constructors

C#
public TelerikCalendar()

Methods

C#
protected override void BuildRenderTree(RenderTreeBuilder __builder)
Parameters:__builderRenderTreeBuilder

Overrides: ComponentBase.BuildRenderTree(RenderTreeBuilder)

Moves the calendar to specific date in a view.

C#
public void NavigateTo(DateTime date, CalendarView view)
Parameters:dateDateTime

The date to which to navigate.

viewCalendarView

The view to which to navigate.

C#
protected override Task OnAfterRenderAsync(bool firstRender)
Parameters:firstRenderboolReturns:

Task

Overrides: BaseComponent.OnAfterRenderAsync(bool)

C#
protected void OnHeaderTitleClick()
C#
protected override void OnInitialized()

Overrides: ComponentBase.OnInitialized()

C#
protected override void OnParametersSet()

Overrides: ComponentBase.OnParametersSet()

Re-renders the component.

C#
public void Refresh()
C#
public override Task SetParametersAsync(ParameterView parameters)
Parameters:parametersParameterViewReturns:

Task

Overrides: ComponentBase.SetParametersAsync(ParameterView)

Properties

Defines if the end date can precede the start date.

C#
[Parameter]
public bool AllowReverse { get; set; }

Defines the bottommost view to which the user can navigate. Default value is Month.

C#
[Parameter]
public CalendarView BottomView { get; set; }

Defines the settings container for the Calendar. Place CalendarWebMcpSettings inside.

C#
[Parameter]
public RenderFragment CalendarSettings { get; set; }

The template that will be used when rendering date cells in Century View.

C#
[Parameter]
public RenderFragment<DateTime> CenturyCellTemplate { get; set; }

Sets the date to which the calendar will navigate.

C#
[Parameter]
public DateTime Date { get; set; }

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

C#
[Parameter]
public EventCallback<DateTime> DateChanged { get; set; }

The template that will be used when rendering date cells in Decade View.

C#
[Parameter]
public RenderFragment<DateTime> DecadeCellTemplate { get; set; }

Specifies a list of dates that can not be selected.

C#
[Parameter]
public List<DateTime> DisabledDates { get; set; }

Enables WebMCP tool registration for this Calendar, allowing AI models to discover and invoke calendar operations.

C#
[Parameter]
public bool EnableWebMcpTools { get; set; }

Specifies the header template.

C#
[Parameter]
public RenderFragment HeaderTemplate { get; set; }

Sets the maximum allowed date of the calendar.

C#
[Parameter]
public DateTime Max { get; set; }

Sets the minimum allowed date of the calendar.

C#
[Parameter]
public DateTime Min { get; set; }

The template that will be used when rendering date cells in Month View.

C#
[Parameter]
public RenderFragment<DateTime> MonthCellTemplate { get; set; }

Called each time a cell is rendered. Use this to add custom classes to the cell based on the date.

C#
[Parameter]
public Action<CalendarCellRenderEventArgs> OnCellRender { get; set; }

Specifies the orientation of the calendar when multiple views are present. The available vaues are Horizontal (default) and Vertical.

C#
[Parameter]
public CalendarOrientation Orientation { get; set; }

The end selected date in CalendarSelectionMode.Range.

C#
[Parameter]
public DateTime RangeEnd { get; set; }

The handler that will be called when range end changes.

C#
[Parameter]
public EventCallback<DateTime> RangeEndChanged { get; set; }

The start selected date in CalendarSelectionMode.Range.

C#
[Parameter]
public DateTime RangeStart { get; set; }

The handler that will be called when range start changes.

C#
[Parameter]
public EventCallback<DateTime> RangeStartChanged { get; set; }

Gets or sets the selected dates when multi-selection is enabled.

C#
[Parameter]
public List<DateTime> SelectedDates { get; set; }

Sets the selection mode of the calendar. Default value is Single.

C#
[Parameter]
public CalendarSelectionMode SelectionMode { get; set; }

Defines if the days from adjacent months are shown.

C#
[Parameter]
public bool ShowOtherMonthDays { get; set; }

Defines if additional week number column is added.

C#
[Parameter]
public bool ShowWeekNumbers { get; set; }

Specifies the Size of the calendar. Default value is Medium.

C#
[Parameter]
public string Size { get; set; }

Defines the topmost view to which the user can navigate. Default value is Century.

C#
[Parameter]
public CalendarView TopView { get; set; }

Sets the value of the calendar when single selection is used.

C#
[Parameter]
public DateTime Value { get; set; }

The handler that will be called when the user selects date(s).

C#
[Parameter]
public EventCallback<DateTime> ValueChanged { get; set; }

Specifies the current view that will be displayed. See CalendarView.

C#
[Parameter]
public CalendarView View { get; set; }

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

C#
[Parameter]
public EventCallback<CalendarView> ViewChanged { get; set; }

Defines the number of views that will be rendered next to each other. Default value is 1.

C#
[Parameter]
public int Views { get; set; }

The template that will be used when rendering date cells in Year View.

C#
[Parameter]
public RenderFragment<DateTime> YearCellTemplate { get; set; }