A base class for RadzenScheduler<T> views.
ComponentBase.BuildRenderTree
ComponentBase.OnInitialized
ComponentBase.OnInitializedAsync
ComponentBase.OnParametersSet
ComponentBase.OnParametersSetAsync
ComponentBase.StateHasChanged
ComponentBase.ShouldRender
ComponentBase.OnAfterRender
ComponentBase.OnAfterRenderAsync
ComponentBase.InvokeAsync
ComponentBase.DispatchExceptionAsync
ComponentBase.RendererInfo
ComponentBase.Assets
ComponentBase.AssignedRenderMode
Namespace: Radzen.Blazor
Assembly: Radzen.Blazor.dll
public abstract class SchedulerViewBase : ComponentBase, IComponent, IHandleEvent, IHandleAfterRender, ISchedulerViewA base class for RadzenScheduler<T> views.
protected SchedulerViewBase()Gets the end date.
public DateTime EndDate { get; }
| Type | Description |
|---|---|
| DateTime | Gets the end date. |
Gets the icon of the view. It is displayed in the view switching UI.
public string Icon { get; }
| Type | Description |
|---|---|
| string | Gets the icon of the view. It is displayed in the view switching UI. |
Gets or sets the scheduler instance.
public IScheduler Scheduler { get; set; }
| Type | Description |
|---|---|
| IScheduler | Gets or sets the scheduler instance. |
Gets the start date.
public DateTime StartDate { get; }
| Type | Description |
|---|---|
| DateTime | Gets the start date. |
Gets the text of the view. It is displayed in the view switching UI.
public string Text { get; set; }
| Type | Description |
|---|---|
| string | Gets the text of the view. It is displayed in the view switching UI. |
Gets the title of the view. It is displayed in the RadzenScheduler title area.
public string Title { get; }
| Type | Description |
|---|---|
| string | Gets the title of the view. It is displayed in the RadzenScheduler title area. |
Gets or sets a composite format string used to format the view title. Argument {0} is the first date and argument {1} is the last date displayed by the view. The dates are formatted using the scheduler culture. For example TitleFormat="{0:MMMM yyyy}" displays the month and year of the first date. TitleFormatter takes precedence when both are set.
public string TitleFormat { get; set; }
| Type | Description |
|---|---|
| string | Gets or sets a composite format string used to format the view title. Argument {0} is the first date and argument {1} is the last date displayed by the view. The dates are formatted using the scheduler culture. For example TitleFormat="{0:MMMM yyyy}" displays the month and year of the first date. TitleFormatter takes precedence when both are set. |
Gets or sets a function which returns the view title. It is invoked with the first and the last date displayed by the view. Takes precedence over TitleFormat.
public Func<DateTime, DateTime, string> TitleFormatter { get; set; }
| Type | Description |
|---|---|
| Func<DateTime, DateTime, string> | Gets or sets a function which returns the view title. It is invoked with the first and the last date displayed by the view. Takes precedence over TitleFormat. |
Formats the view title using TitleFormatter or TitleFormat when set, otherwise returns the default title.
protected string FormatTitle(DateTime start, DateTime end, string title)
| Type | Name | Description |
|---|---|---|
| DateTime | start | The first date displayed by the view. |
| DateTime | end | The last date displayed by the view. |
| string | title | The default title. |
| Type | Description |
|---|---|
| string | The formatted title. |
Gets a localized string for the specified resource key.
public string Localize(string key)
| Type | Name | Description |
|---|---|---|
| string | key |
| Type | Description |
|---|---|
| string |
Returns a new date when the user clicks the next button of RadzenScheduler.
public abstract DateTime Next()
| Type | Description |
|---|---|
| DateTime | The next date. For example a day view will return the next day, a week view will return the next week. |
Handles appointent move event.
public Task OnAppointmentMove(SchedulerAppointmentMoveEventArgs data)
| Type | Name | Description |
|---|---|---|
| SchedulerAppointmentMoveEventArgs | data |
| Type | Description |
|---|---|
| Task |
Returns a new date when the user clicks the previous button of RadzenScheduler.
public abstract DateTime Prev()
| Type | Description |
|---|---|
| DateTime | The previous date. For example a day view will return the previous day, a week view will return the previous week. |
Renders this instance.
public abstract RenderFragment Render()
| Type | Description |
|---|---|
| RenderFragment |
Called by the Blazor runtime when parameters are set.
public override Task SetParametersAsync(ParameterView parameters)
| Type | Name | Description |
|---|---|---|
| ParameterView | parameters | The parameters. |
| Type | Description |
|---|---|
| Task |