New to Telerik UI for WinFormsStart a free 30-day trial

Properties

Updated over 6 months ago
PropertyDescription
DirectionGets or sets the direction of rating element paint (Standard, Reversed).
OrientationGets or sets the orientation of the rating control.
SelectionModeGets or sets the selection mode of the rating control.
ItemsGets the rating items collection.
ValueGets or sets the average value of rating element.
MinimumGets or sets the minimum value of rating element.
MaximumGets or sets the maximum value of rating element.
CaptionGets or sets the text of the Caption label.
SubcaptionGets or sets the text of the Sub Caption label.
DescriptionGets or sets the text of the description label.
RatingElementGets the instance of RadRatingElement wrapped by this control. RadRatingElement is the main element in the hierarchy tree and encapsulates the actual functionality of RadRating.
ReadOnlyGets or sets whether the rating is ReadOnly. The Value of the element can still be set in ReadOnly mode, nothing else.

RadRatingElement's properties

PropertyDescription
CaptionElementGets the caption element.
SubCaptionElementGets the sub caption element.
DescriptionElementGets the description element.
ElementsLayoutGets the elements layout.
ToolTipFormatStringGets or sets the tool tip format string.
SelectedValueGets or sets the selected value.
HoverValueGets or sets the hover value.
ToolTipPrecisionGets or sets the tool tip precision.
PercentageRoundingGets or sets the percentage rounding.
ToolTipOffsetGets or sets the tool tip offset.
ToolTipDurationGets or sets the duration of the tool tip.
ShowItemToolTipsDetermines whether the tool tips are shown when hovering the items.

Events

EventDescription
ValueChangingOccurs when the value is being changed. Cancelable event.
ValueChangedOccurs before the value of the RatingElement is changed.

You can find below how to set the aforementioned properties and how they affect RadRating:

  • ShowItemToolTips - by default RadRating shows tooltips when hovering the items. The user can disable this functionality by setting ShowItemToolTips property to False:
C#
this.radRating1.ShowItemToolTips = false;
ShowItemToolTips=falseShowItemToolTips=true
WinForms RadRating ShowItemToolTips FalseWinForms RadRating ShowItemToolTips True
  • RightToLeft - RadRating supports RightToLeft functionality. It is disabled by default, so you should enable it:
C#
            
this.radRating1.RightToLeft = System.Windows.Forms.RightToLeft.Yes;
RightToLeft=falseRightToLeft=true
WinForms RadRating RightToLeft FalseWinForms RadRating RightToLeft True
  • Direction property can be used to control the hover direction.
C#
            
this.radRating1.Direction = RatingDirection.Reversed;
Direction=StandardDirection=Reversed
WinForms RadRating Standard DirectionWinForms RadRating Reversed Direction
  • Orientation - the default RadRating orientation is Horizontal. It is allowed to change it to Vertical:
C#
            
this.radRating1.Orientation = Orientation.Vertical;
this.radRating1.AutoSize = true;
Orientation=HorizontalOrientation=Vertical
WinForms RadRating Horizontal OrientationWinForms RadRating Vertical Orientation
  • Caption, Subcaption and Description – specify texts for the captions of RadRating:
C#
            
this.radRating1.Caption = "Rate the movie";
this.radRating1.Description = "Description";
this.radRating1.Subcaption = "SubCaption";

WinForms RadRating Description

  • SelectionMode - determines how precisely the user will select the value:

RatingSelectionMode.Precise

C#
            
this.radRating1.SelectionMode = Telerik.WinControls.UI.RatingSelectionMode.Precise;

RatingSelectionMode.HalfItem

C#
this.radRating1.SelectionMode = Telerik.WinControls.UI.RatingSelectionMode.HalfItem;

RatingSelectionMode.FullItem

C#
this.radRating1.SelectionMode = Telerik.WinControls.UI.RatingSelectionMode.FullItem;
SelectionMode=FullItemSelectionMode=HalfItemSelectionMode=Precise
WinForms RadRating FullItem SelectionModeWinForms RadRating HalfItem SelectionModeWinForms RadRating Precise SelectionMode
  • Minimum and Maximum – specifies the range of RadRating:

Specify minimum/maximum

C#
            
this.radRating1.Minimum = 10;
this.radRating1.Maximum = 40;

WinForms RadRating Minimum MaximumWinForms RadRating rating-properties-and-events 010

  • Value - sets or gets the value of the RadRating:
C#
this.radRating1.Value = 43.4;

See Also

In this article
See Also
Not finding the help you need?
Contact Support