RatingTagHelper

Example

Razor
<kendo-rating>
    <hovered-template></hovered-template>
    <item-template></item-template>
    <label />
    <selected-template></selected-template>
</kendo-rating>

ChildTags

Tag NameDetails
hovered-templateTemplateTagHelper
item-templateTemplateTagHelper
labelRatingLabelSettingsTagHelper
selected-templateTemplateTagHelper

Attributes

AttributeTypeDescription
nameStringSets the name of the component.
forModelExpressionAn expression to be evaluated against the current model.
deferredBooleanSuppress initialization script rendering. Note that this options should be used in conjunction with DeferredScripts method.
is-in-client-templateBooleanWhen placing a Tag Helper within a Kendo Template, set the type to text/html and add the is-in-client-template="true" attribute.
as-moduleBoolean
enabledBooleanIf 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..
has-client-componentBoolean
hovered-templateStringSpecifies the template which is used for rendering the hovered state of the items.
hovered-template-handlerStringSpecifies the template which is used for rendering the hovered state of the items.
hovered-template-idStringSpecifies the template which is used for rendering the hovered state of the items.
hovered-template-viewIHtmlContentSpecifies the template which is used for rendering the hovered state of the items.
item-templateStringSpecifies the template which is used for rendering the items of the Rating.
item-template-handlerStringSpecifies the template which is used for rendering the items of the Rating.
item-template-idStringSpecifies the template which is used for rendering the items of the Rating.
item-template-viewIHtmlContentSpecifies the template which is used for rendering the items of the Rating.
maxDoubleThe value to which the Rating items will be rendered.
minDoubleThe value from which the Rating items will be rendered.
on-changeStringFires when the value of the Rating is changed through user interaction.
on-selectStringFires when an item is selected through user interaction.
precisionStringSpecifies 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.
readonlyBooleanIf 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..
sanitize-idBoolean
script-attributesIDictionary<String,Object>
selected-templateStringSpecifies the template which is used for rendering the selected state of the items.
selected-template-handlerStringSpecifies the template which is used for rendering the selected state of the items.
selected-template-idStringSpecifies the template which is used for rendering the selected state of the items.
selected-template-viewIHtmlContentSpecifies the template which is used for rendering the selected state of the items.
selectionStringSpecifies 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.
select-value-on-focusDoubleIf the option is set, the widget will automatically select the specified item when the Rating receives focus and no previous value has been set.
tooltipBooleanThe 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.
valueDoubleSpecifies 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.
In this article
ExampleChildTagsAttributes
Not finding the help you need?
Contact Support