Class
Resource

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:

cs-api-definition
public class Resource : IResource, IDataBoundItem, INotifyPropertyChanged

Inheritance: objectResource

Implements: IDataBoundItemINotifyPropertyChangedIResource

Constructors

Resource()

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

Declaration

cs-api-definition
public Resource()

Resource(EventId, string)

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

Declaration

cs-api-definition
public Resource(EventId id, string name)

Parameters

id

EventId

The EventId that uniquely identifies the resource.

name

string

The display name of the resource.

Resource(object, string)

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

Declaration

cs-api-definition
public Resource(object id, string name)

Parameters

id

object

The unique identifier of the resource.

name

string

The display name of the resource.

Properties

Color

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

Declaration

cs-api-definition
public Color Color { get; set; }

Property Value

Color

Implements IResource.Color

DataItem

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

Declaration

cs-api-definition
public object DataItem { get; }

Property Value

object

Implements IDataBoundItem.DataItem

Id

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

Declaration

cs-api-definition
public EventId Id { get; set; }

Property Value

EventId

Implements IResource.Id

Image

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

Declaration

cs-api-definition
public Image Image { get; set; }

Property Value

Image

Implements IResource.Image

Name

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

Declaration

cs-api-definition
public string Name { get; set; }

Property Value

string

Implements IResource.Name

Visible

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.

Declaration

cs-api-definition
public bool Visible { get; set; }

Property Value

bool

Implements IResource.Visible

Methods

OnPropertyChanged(string)

Raises the PropertyChanged event for the specified property name.

Declaration

cs-api-definition
protected virtual void OnPropertyChanged(string propertyName)

Parameters

propertyName

string

The name of the property that changed.

Events

PropertyChanged

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

Declaration

cs-api-definition
public event PropertyChangedEventHandler PropertyChanged

Event Value

PropertyChangedEventHandler

Implements INotifyPropertyChanged.PropertyChanged