New to Telerik UI for ASP.NET AJAX? Start a free 30-day trial

This Class defines the Resource object in RadScheduler control.

Definition

Namespace:Telerik.Web.UI

Assembly:Telerik.Web.UI.dll

Syntax:

C#
public class Resource : StateManager, IMarkableStateManager, IStateManager, IEquatable<Resource>, ICustomTypeDescriptor

Inheritance: objectStateManagerResource

Implements: ICustomTypeDescriptorIEquatable<Resource>IMarkableStateManagerIStateManager

Inherited Members StateManager.IsTrackingViewStateStateManager.ViewStateobject.ToString()object.Equals(object, object)object.ReferenceEquals(object, object)object.GetType()object.MemberwiseClone()...

Constructors

C#
public Resource()
C#
public Resource(string resType, object resKey, string resText)
Parameters:resTypestringresKeyobjectresTextstring

Properties

Gets the collection of arbitrary attributes that do not correspond to properties on the resource.

C#
[Browsable(false)]
[ScriptIgnore]
public AttributeCollection Attributes { get; }
Property Value:

A AttributeCollection of name and value pairs.

Gets or sets a value indicating if the resource is a available.

C#
public bool Available { get; set; }
Property Value:

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.

C#
public string CssClass { get; set; }
Property Value:

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.

C#
public virtual object DataItem { get; set; }

This property is available only during data binding.

Gets the header controls.

C#
[Browsable(false)]
[ScriptIgnore]
public IList<SchedulerResourceContainer> HeaderControls { get; }
Property Value:

The header controls.

Gets or sets a value indicating the resource primary key value.

C#
public object Key { get; set; }
Property Value:

The resource primary key value.

Gets or sets a value indicating the user-friendly description of the resource.

C#
public string Text { get; set; }
Property Value:

The user-friendly description of the resource.

Gets or sets a value indicating the resource type.

C#
public string Type { get; set; }
Property Value:

The resource type.

The type must be one of the described resource types in ResourceTypes collection.

Methods

Determines whether the specified object is equal to the current object.

C#
public override bool Equals(object obj)
Parameters:objobject

The object to compare with the current object.

Returns:

bool

true if the specified object is equal to the current object; otherwise, false.

Exceptions: NullReferenceException

The obj parameter is null.

Overrides: object.Equals(object)

Equalses the specified res.

C#
public bool Equals(Resource res)
Parameters:resResource

The res.

Returns:

bool

Implements: IEquatable<Resource>.Equals(Resource)

Serves as a hash function for a particular type.

C#
public override int GetHashCode()
Returns:

int

A hash code for the current object.

Overrides: object.GetHashCode()

C#
protected override void LoadViewState(object state)
Parameters:stateobject

Overrides: StateManager.LoadViewState(object)

C#
protected override object SaveViewState()
Returns:

object

Overrides: StateManager.SaveViewState()

C#
protected override void TrackViewState()

Overrides: StateManager.TrackViewState()

Operators

C#
public static bool operator !=(Resource o1, Resource o2)
Parameters:o1Resourceo2ResourceReturns:

bool

C#
public static bool operator ==(Resource o1, Resource o2)
Parameters:o1Resourceo2ResourceReturns:

bool