Resource
This Class defines the Resource object in RadScheduler control.
Definition
Namespace:Telerik.Web.UI
Assembly:Telerik.Web.UI.dll
Syntax:
public class Resource : StateManager, IMarkableStateManager, IStateManager, IEquatable<Resource>, ICustomTypeDescriptor
Inheritance: objectStateManagerResource
Implements:
Inherited Members
Constructors
public Resource()
Properties
Gets the collection of arbitrary attributes that do not correspond to properties on the resource.
[Browsable(false)]
[ScriptIgnore]
public AttributeCollection Attributes { get; }
A AttributeCollection of name and value pairs.
Gets or sets a value indicating if the resource is a available.
public bool Available { get; set; }
A value indicating if the resource is a available.
Resources marked as unavailable will not be visible in the drop-down lists in the advanced form (if applicable).
Gets or sets the cascading style sheet (CSS) class rendered for appointments that use this resource.
public string CssClass { get; set; }
The cascading style sheet (CSS) class rendered for appointments that use this resource. The default value is Empty.
You can define your own CSS class name or use some of the predefined class names:
- rsCategoryRed
- rsCategoryBlue
- rsCategoryOrange
- rsCategoryGreen
Gets or sets the data item represented by the Resource object in the RadScheduler control.
public virtual object DataItem { get; set; }
This property is available only during data binding.
Gets the header controls.
[Browsable(false)]
[ScriptIgnore]
public IList<SchedulerResourceContainer> HeaderControls { get; }
The header controls.
Gets or sets a value indicating the resource primary key value.
public object Key { get; set; }
The resource primary key value.
Gets or sets a value indicating the user-friendly description of the resource.
public string Text { get; set; }
The user-friendly description of the resource.
Gets or sets a value indicating the resource type.
public string Type { get; set; }
The resource type.
The type must be one of the described resource types in ResourceTypes collection.
Methods
protected override void TrackViewState()
Overrides: