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

A collection of RadRatingItem objects in a RadRating control.

The RadRatingItemCollection class represents a collection of RadRatingItem objects.

  • Use the indexer to programmatically retrieve a single RadRatingItem from the collection, using array notation.
  • Use the Count property to determine the total number of rating items in the collection.
  • Use the Add(string) method to add items in the collection.
  • Use the Remove(ItemType) method to remove items from the collection.

Definition

Namespace:Telerik.Web.UI

Assembly:Telerik.Web.UI.dll

Syntax:

C#
public class RadRatingItemCollection : StronglyTypedStateManagedCollection<RadRatingItem>, IList, ICollection, IEnumerable, IStateManager

Inheritance: objectStateManagedCollectionStronglyTypedStateManagedCollection<RadRatingItem>RadRatingItemCollection

Implements: ICollectionIEnumerableIListIStateManager

Inherited Members StronglyTypedStateManagedCollection<RadRatingItem>.Add(RadRatingItem)StronglyTypedStateManagedCollection<RadRatingItem>.Contains(RadRatingItem)StronglyTypedStateManagedCollection<RadRatingItem>.CopyTo(RadRatingItem[], int)StronglyTypedStateManagedCollection<RadRatingItem>.AddRange(IEnumerable<RadRatingItem>)StronglyTypedStateManagedCollection<RadRatingItem>.IndexOf(RadRatingItem)StronglyTypedStateManagedCollection<RadRatingItem>.Insert(int, RadRatingItem)StronglyTypedStateManagedCollection<RadRatingItem>.Remove(RadRatingItem)StronglyTypedStateManagedCollection<RadRatingItem>.RemoveAt(int)StronglyTypedStateManagedCollection<RadRatingItem>.this[int]StronglyTypedStateManagedCollection<RadRatingItem>.ListStateManagedCollection.Clear()StateManagedCollection.CopyTo(Array, int)StateManagedCollection.CreateKnownType(int)StateManagedCollection.GetEnumerator()StateManagedCollection.GetKnownTypes()StateManagedCollection.OnClearComplete()StateManagedCollection.OnValidate(object)StateManagedCollection.OnInsert(int, object)StateManagedCollection.OnRemove(int, object)StateManagedCollection.SetDirty()StateManagedCollection.Countobject.ToString()object.Equals(object)object.Equals(object, object)object.ReferenceEquals(object, object)object.GetHashCode()object.GetType()object.MemberwiseClone()...

Constructors

Initializes a new instance of the RadRatingItemCollection class.

C#
public RadRatingItemCollection(RadRating parent)
Parameters:parentRadRating

The owner of the collection.

Methods

C#
public virtual void Add(string imageUrl, string selectedImageUrl, string hoveredImageUrl, string hoveredSelectedImageUrl)
Parameters:imageUrlstringselectedImageUrlstringhoveredImageUrlstringhoveredSelectedImageUrlstring
C#
public virtual void Add(string imageUrl, string selectedImageUrl, string hoveredImageUrl)
Parameters:imageUrlstringselectedImageUrlstringhoveredImageUrlstring
C#
public virtual void Add(string imageUrl, string selectedImageUrl)
Parameters:imageUrlstringselectedImageUrlstring
C#
public virtual void Add(string imageUrl)
Parameters:imageUrlstring
C#
protected override void OnClear()

Overrides: StateManagedCollection.OnClear()

C#
protected override void OnInsertComplete(int index, object value)
Parameters:indexintvalueobject

Overrides: StateManagedCollection.OnInsertComplete(int, object)

C#
protected override void OnRemoveComplete(int index, object value)
Parameters:indexintvalueobject

Overrides: StateManagedCollection.OnRemoveComplete(int, object)

C#
protected override void SetDirtyObject(object o)
Parameters:oobject

Overrides: StronglyTypedStateManagedCollection<RadRatingItem>.SetDirtyObject(object)