ClassSchedulerResource
Definition
Namespace:Telerik.Blazor.Components
Assembly:Telerik.Blazor.dll
Syntax:
public class SchedulerResource : ComponentBase, IComponent, IHandleEvent, IHandleAfterRender, IDisposable
Inheritance: objectComponentBaseSchedulerResource
Implements:
Inherited Members
Constructors
SchedulerResource()
Declaration
public SchedulerResource()
Properties
ColorField
Specifies which property contains color information in resource data objects. Resource colors enhance visual organization by tinting appointments and resource headers. Supports CSS color values: hex codes ("#FF5733"), named colors ("red"), or RGB values. Example: "Color" for pre-defined resource colors, "ThemeColor" for themed color schemes.
Declaration
[Parameter]
public string ColorField { get; set; }
Property Value
Data
Provides the collection of available resource items for this resource type. Each item should contain properties mapped by TextField, ValueField, and optionally ColorField. Changes to this collection trigger resource data refresh and may affect appointment grouping.
Declaration
[Parameter]
public IEnumerable<object> Data { get; set; }
Property Value
Field
Specifies which property in appointment data objects links to this resource. This creates the connection between appointments and resource values for grouping and filtering. Example: "RoomId" links appointments to room resources, "DoctorId" links to doctor resources.
TextField
Specifies which property contains the display text in resource data objects. This text appears in dropdowns, headers, and resource selection interfaces. Example: "Name" for resource items with display names, "Title" for descriptive resource labels.
Declaration
[Parameter]
public string TextField { get; set; }
Property Value
Title
Sets the display name for this resource shown in the edit form and resource headers. If not specified, the Field value is used as the title. Example: "Meeting Room" for a room resource, "Assigned Doctor" for a person resource.
ValueField
Specifies which property contains the unique identifier in resource data objects. This value links appointments to specific resources and must match values in appointment data. Example: "Id" for resource unique identifiers, "Code" for resource identification codes.
Declaration
[Parameter]
public string ValueField { get; set; }
Property Value
Methods
BuildRenderTree(RenderTreeBuilder)
Declaration
protected override void BuildRenderTree(RenderTreeBuilder __builder)
Parameters
__builder
Overrides
Dispose()
Declaration
public void Dispose()
Implements
OnInitialized()
Declaration
protected override void OnInitialized()
Overrides
SetParametersAsync(ParameterView)
Declaration
public override Task SetParametersAsync(ParameterView parameters)
Parameters
parameters
Returns
Overrides