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

Represents a single visual unit (e.g., star) within a RadRating control. Supports different image URLs for normal, selected, hovered, and hovered-selected states.

Definition

Constructors

C#
public RadRatingItem()
C#
public RadRatingItem(string imageUrl, string selectedImageUrl, string hoveredImageUrl, string hoveredSelectedImageUrl)
Parameters:imageUrlstringselectedImageUrlstringhoveredImageUrlstringhoveredSelectedImageUrlstring
C#
public RadRatingItem(string imageUrl, string selectedImageUrl, string hoveredImageUrl)
Parameters:imageUrlstringselectedImageUrlstringhoveredImageUrlstring
C#
public RadRatingItem(string imageUrl, string selectedImageUrl)
Parameters:imageUrlstringselectedImageUrlstring
C#
public RadRatingItem(string imageUrl)
Parameters:imageUrlstring

Properties

Gets or sets the CSS class of the rating item.

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

The CSS class to apply to the rating item. The default value is empty string.

Gets or sets the path to an image to display for the item when it is hovered.

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

The path to the image to display for the item. The default value is empty string.

Use the HoveredImageUrl property to specify the image for the item when it is hovered. If the HoveredImageUrl property is set to empty string, the item will display the HoveredSelectedImageUrl image. Use "~" (tilde) when referring to images within the current ASP.NET application.

Gets or sets the path to an image to display for the selected item when it is hovered.

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

The path to the image to display for the item. The default value is empty string.

Use the HoveredSelectedImageUrl property to specify the image for the selected item when it is hovered. If the HoveredSelectedImageUrl property is set to empty string, the item will display the SelectedImageUrl image. Use "~" (tilde) when referring to images within the current ASP.NET application.

Gets or sets the path to an image to display for the item.

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

The path to the image to display for the item. The default value is empty string.

Use the ImageUrl property to specify the image for the item. If the ImageUrl property is set to empty string, the item will render the image, defined in the Skin of the rating control. Use "~" (tilde) when referring to images within the current ASP.NET application.

Gets the index of the rating item in the Items collection of the rating control.

C#
public int Index { get; }
Property Value:

The index of the rating item.

Gets or sets the path to an image to display for the item when it is selected.

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

The path to the image to display for the item. The default value is empty string.

Use the SelectedImageUrl property to specify the image for the item when it is selected. If the SelectedImageUrl property is set to empty string, the item will display the ImageUrl image. Use "~" (tilde) when referring to images within the current ASP.NET application.

Gets or sets the tooltip of the rating item.

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

The tooltip of the rating item. The default value is empty string.

Gets or sets the value of the rating item.

C#
public decimal Value { get; set; }
Property Value:

The value of the rating item.

Methods

C#
protected override void LoadViewState(object savedState)
Parameters:savedStateobject

Overrides: StateManager.LoadViewState(object)

C#
protected override object SaveViewState()
Returns:

object

Overrides: StateManager.SaveViewState()