Defines a resource type (rooms, people, equipment) of RadzenScheduler<T>. Declare one instance per resource type as child content of the scheduler. Views group appointments by the declared resource types when their GroupByResource property is set to true. The order of declaration determines the grouping hierarchy - the first resource type is the top level.
Object
ComponentBase
IComponent
IHandleEvent
IHandleAfterRender
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 class RadzenSchedulerResource : ComponentBase, IComponent, IHandleEvent, IHandleAfterRender<RadzenScheduler Data="@bookings" StartProperty="Start" EndProperty="End" TextProperty="Text">
<RadzenSchedulerResource Name="Room" Data="@rooms" Property="RoomId" TextProperty="Name" ValueProperty="Id" />
<RadzenSchedulerResource Name="Employee" Data="@employees" Property="EmployeeIds" TextProperty="FullName" ValueProperty="Id" />
<RadzenDayView GroupByResource="true" />
</RadzenScheduler>Defines a resource type (rooms, people, equipment) of RadzenScheduler<T>. Declare one instance per resource type as child content of the scheduler. Views group appointments by the declared resource types when their GroupByResource property is set to true. The order of declaration determines the grouping hierarchy - the first resource type is the top level.
public RadzenSchedulerResource()Gets or sets the collection of resource items of this type.
public Collections.IEnumerable Data { get; set; }
| Type | Description |
|---|---|
| Collections.IEnumerable | Gets or sets the collection of resource items of this type. |
Gets or sets the template used to render the headers of this resource type in views which group appointments by resource. The resource item is passed as context.
public RenderFragment<object> HeaderTemplate { get; set; }
| Type | Description |
|---|---|
| RenderFragment<object> | Gets or sets the template used to render the headers of this resource type in views which group appointments by resource. The resource item is passed as context. |
Gets the resource items as a list.
public IList<object> Items { get; }
| Type | Description |
|---|---|
| IList<object> | Gets the resource items as a list. |
Gets or sets the name of the resource type. Used as key in Resources and related event arguments. Set to the value of Property by default.
public string Name { get; set; }
| Type | Description |
|---|---|
| string | Gets or sets the name of the resource type. Used as key in Resources and related event arguments. Set to the value of Property by default. |
Specifies the property of an appointment data item which contains the value of the resource it belongs to. The property value is compared to the value of ValueProperty of every resource item. Collection properties are supported - the appointment is displayed for every resource item whose value the collection contains.
public string Property { get; set; }
| Type | Description |
|---|---|
| string | Specifies the property of an appointment data item which contains the value of the resource it belongs to. The property value is compared to the value of ValueProperty of every resource item. Collection properties are supported - the appointment is displayed for every resource item whose value the collection contains. |
Gets or sets the scheduler instance.
public IScheduler Scheduler { get; set; }
| Type | Description |
|---|---|
| IScheduler | Gets or sets the scheduler instance. |
Specifies the property of a resource item which contains its display text. The resource item itself is used when not set.
public string TextProperty { get; set; }
| Type | Description |
|---|---|
| string | Specifies the property of a resource item which contains its display text. The resource item itself is used when not set. |
Specifies the property of a resource item which contains its unique value. The resource item itself is used when not set.
public string ValueProperty { get; set; }
| Type | Description |
|---|---|
| string | Specifies the property of a resource item which contains its unique value. The resource item itself is used when not set. |
Gets the display text of the specified resource item.
public string GetText(object item)
| Type | Name | Description |
|---|---|---|
| object | item | The resource item. |
| Type | Description |
|---|---|
| string | The display text. |
Determines whether the specified appointment belongs to the specified resource item of this type.
public bool IsAppointmentInResource(AppointmentData appointment, object item)
| Type | Name | Description |
|---|---|---|
| AppointmentData | appointment | The appointment to check. |
| object | item | The resource item. |
| Type | Description |
|---|---|
| bool | true if the appointment belongs to the resource item; otherwise, false. |
Called by the Blazor runtime when parameters are set.
public override Task SetParametersAsync(ParameterView parameters)
| Type | Name | Description |
|---|---|---|
| ParameterView | parameters |
| Type | Description |
|---|---|
| Task |