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.
Inheritance
Inherited Members
Namespace: Telerik.WinControls.UI
Assembly: Telerik.WinControls.Scheduler.dll
Syntax
public class Resource : IResource, IDataBoundItem, INotifyPropertyChanged
Constructors
Resource()
Resource(Object, String)
Initializes a new instance of the Resource class with the specified identifier and name.
Declaration
public Resource(object id, string name)
Parameters
System.Object
id
The unique identifier of the resource. |
System.String
name
The display name of the resource. |
Resource(EventId, String)
Declaration
public Resource(EventId id, string name)
Parameters
EventId
id
The EventId that uniquely identifies the resource. |
System.String
name
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
public Color Color { get; set; }
Property Value
System.Drawing.Color
|
Implements
DataItem
Gets the data source object that this resource is bound to when using data binding scenarios.
Declaration
public object DataItem { get; }
Property Value
System.Object
|
Implements
Id
Gets or sets the unique identifier of the resource used for data binding and event association.
Declaration
public EventId Id { get; set; }
Property Value
EventId
|
Implements
Image
Gets or sets the image associated with the resource that can be displayed in the scheduler interface.
Declaration
public Image Image { get; set; }
Property Value
System.Drawing.Image
|
Implements
Name
Gets or sets the display name of the resource that will be shown in the scheduler interface.
Declaration
public string Name { get; set; }
Property Value
System.String
|
Implements
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
public bool Visible { get; set; }
Property Value
System.Boolean
|
Implements
Methods
OnPropertyChanged(String)
Raises the PropertyChanged event for the specified property name.
Declaration
protected virtual void OnPropertyChanged(string propertyName)
Parameters
System.String
propertyName
The name of the property that changed. |
Events
PropertyChanged
Occurs when a property value changes, enabling data binding scenarios.
Declaration
public event PropertyChangedEventHandler PropertyChanged
Event Type
System.ComponentModel.PropertyChangedEventHandler
|
Explicit Interface Implementations
IDataBoundItem.SetDataItem(Object)
Declaration
void IDataBoundItem.SetDataItem(object dataItem)
Parameters
System.Object
dataItem
|