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

Represents a resource that can be assigned to scheduler appointments in RadScheduler. Resources enable grouping and categorization of appointments by person, room, equipment, or any other entity.

Definition

Namespace:Telerik.WinControls.UI

Assembly:Telerik.WinControls.Scheduler.dll

Syntax:

C#
public class Resource : IResource, IDataBoundItem, INotifyPropertyChanged

Inheritance: objectResource

Implements: IDataBoundItemINotifyPropertyChangedIResource

Constructors

Initializes a new instance of the Resource class with default values.

C#
public Resource()

Initializes a new instance of the Resource class with the specified EventId and name.

C#
public Resource(EventId id, string name)
Parameters:idEventId

The EventId that uniquely identifies the resource.

namestring

The display name of the resource.

Initializes a new instance of the Resource class with the specified identifier and name.

C#
public Resource(object id, string name)
Parameters:idobject

The unique identifier of the resource.

namestring

The display name of the resource.

Properties

Gets or sets the color associated with the resource that is used for visual identification and theming of appointments assigned to this resource.

C#
public Color Color { get; set; }

Implements: IResource.Color

Gets the data source object that this resource is bound to when using data binding scenarios.

C#
public object DataItem { get; }

Implements: IDataBoundItem.DataItem

Gets or sets the unique identifier of the resource used for data binding and event association.

C#
public EventId Id { get; set; }

Implements: IResource.Id

Gets or sets the image associated with the resource that can be displayed in the scheduler interface.

C#
public Image Image { get; set; }

Implements: IResource.Image

Gets or sets the display name of the resource that will be shown in the scheduler interface.

C#
public string Name { get; set; }

Implements: IResource.Name

Gets or sets a value indicating whether this resource is visible in the scheduler interface. When set to false, the resource and its associated appointments will be hidden from view.

C#
public bool Visible { get; set; }

Implements: IResource.Visible

Methods

Raises the PropertyChanged event for the specified property name.

C#
protected virtual void OnPropertyChanged(string propertyName)
Parameters:propertyNamestring

The name of the property that changed.

Events

Occurs when a property value changes, enabling data binding scenarios.

C#
public event PropertyChangedEventHandler PropertyChanged

Implements: INotifyPropertyChanged.PropertyChanged