Kendo.Mvc.UI.Rating

Kendo UI Rating component

Fields

urlGenerator

The URL generator.

Properties

Min

The value from which the Rating items will be rendered.

Max

The value to which the Rating items will be rendered.

Selection

Specifies the selection behavior. The available options are:*continuous - all items, starting from the first one, are marked as selected. *single - a single item is marked as selected.

Precision

Specifies the precision with which an item is selected. The available options are:*item - rate by selecting the whole item. *half - rate by selecting half of the item or the whole item.

Tooltip

The Rating displays the value of the item through the title attribute when it is hovered.If tooltip is set to false, the widget will not display the value of the items when hovering over them.The tooltips are not visible when the Rating is disabled.

Label

The Rating displays a label by default that shows the current value out of the max value 3 / 5. If the widget does not have a selected value, the label will not be displayed initially and will be toggled after an item is selected.If label is set to false, the widget will not display the label.

SelectValueOnFocus

If the option is set, the widget will automatically select the specified item when the Rating receives focus and no previous value has been set.

ItemTemplate

Specifies the template which is used for rendering the items of the Rating.

ItemTemplateId

The id for the ItemTemplate

SelectedTemplate

Specifies the template which is used for rendering the selected state of the items.

SelectedTemplateId

The id for the SelectedTemplate

HoveredTemplate

Specifies the template which is used for rendering the hovered state of the items.

HoveredTemplateId

The id for the HoveredTemplate

Enabled

If set to false, the Rating will be: disabled and will not allow the user to change its state.; excluded from the tab order and not receiving focus. or will not submit its value if part of a form..

Readonly

If set to true, the Rating will: be in readonly state and will not allow the user to change its state.; be included in the tab order and able to receive focus. or submit data if part of a form..

Value

Specifies the initial value of the Rating.If a greater value than the max option is used, then the max value will be set.If a value less than the min option is used, then the min value will be set.

Methods

WriteInitializationScript(System.IO.TextWriter)

Writes the initialization script.

Parameters

writer System.IO.TextWriter

The TextWriter.

WriteHtml(System.Web.UI.HtmlTextWriter)

Writes the HTML.

Parameters

writer System.Web.UI.HtmlTextWriter

The HtmlTextWriter.

In this article
Not finding the help you need?