TelerikCalendar
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
public TelerikCalendar()
Methods
protected override void BuildRenderTree(RenderTreeBuilder __builder)
Overrides:
Moves the calendar to specific date in a view.
public void NavigateTo(DateTime date, CalendarView view)
The date to which to navigate.
viewCalendarViewThe view to which to navigate.
protected void OnHeaderTitleClick()
protected override void OnInitialized()
Overrides:
protected override void OnParametersSet()
Overrides:
Re-renders the component.
public void Refresh()
public override Task SetParametersAsync(ParameterView parameters)
Overrides:
Properties
Defines if the end date can precede the start date.
[Parameter]
public bool AllowReverse { get; set; }
Defines the bottommost view to which the user can navigate. Default value is Month.
[Parameter]
public CalendarView BottomView { get; set; }
Defines the settings container for the Calendar. Place CalendarWebMcpSettings inside.
[Parameter]
public RenderFragment CalendarSettings { get; set; }
The template that will be used when rendering date cells in Century View.
[Parameter]
public RenderFragment<DateTime> CenturyCellTemplate { get; set; }
Sets the date to which the calendar will navigate.
[Parameter]
public DateTime Date { get; set; }
The handler that will be called when the user navigates to a different date.
[Parameter]
public EventCallback<DateTime> DateChanged { get; set; }
The template that will be used when rendering date cells in Decade View.
[Parameter]
public RenderFragment<DateTime> DecadeCellTemplate { get; set; }
Specifies a list of dates that can not be selected.
[Parameter]
public List<DateTime> DisabledDates { get; set; }
Enables WebMCP tool registration for this Calendar, allowing AI models to discover and invoke calendar operations.
[Parameter]
public bool EnableWebMcpTools { get; set; }
Specifies the header template.
[Parameter]
public RenderFragment HeaderTemplate { get; set; }
Sets the maximum allowed date of the calendar.
[Parameter]
public DateTime Max { get; set; }
Sets the minimum allowed date of the calendar.
[Parameter]
public DateTime Min { get; set; }
The template that will be used when rendering date cells in Month View.
[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.
[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.
[Parameter]
public CalendarOrientation Orientation { get; set; }
The end selected date in CalendarSelectionMode.Range.
[Parameter]
public DateTime RangeEnd { get; set; }
The handler that will be called when range end changes.
[Parameter]
public EventCallback<DateTime> RangeEndChanged { get; set; }
The start selected date in CalendarSelectionMode.Range.
[Parameter]
public DateTime RangeStart { get; set; }
The handler that will be called when range start changes.
[Parameter]
public EventCallback<DateTime> RangeStartChanged { get; set; }
Gets or sets the selected dates when multi-selection is enabled.
[Parameter]
public List<DateTime> SelectedDates { get; set; }
Sets the selection mode of the calendar. Default value is Single.
[Parameter]
public CalendarSelectionMode SelectionMode { get; set; }
Defines if the days from adjacent months are shown.
[Parameter]
public bool ShowOtherMonthDays { get; set; }
Defines if additional week number column is added.
[Parameter]
public bool ShowWeekNumbers { get; set; }
Specifies the Size of the calendar. Default value is Medium.
[Parameter]
public string Size { get; set; }
Defines the topmost view to which the user can navigate. Default value is Century.
[Parameter]
public CalendarView TopView { get; set; }
Sets the value of the calendar when single selection is used.
[Parameter]
public DateTime Value { get; set; }
The handler that will be called when the user selects date(s).
[Parameter]
public EventCallback<DateTime> ValueChanged { get; set; }
Specifies the current view that will be displayed. See CalendarView.
[Parameter]
public CalendarView View { get; set; }
The handler that will be called when the user navigates to a different view.
[Parameter]
public EventCallback<CalendarView> ViewChanged { get; set; }
Defines the number of views that will be rendered next to each other. Default value is 1.
[Parameter]
public int Views { get; set; }
The template that will be used when rendering date cells in Year View.
[Parameter]
public RenderFragment<DateTime> YearCellTemplate { get; set; }