Rating
Kendo UI Rating component
Definition
Namespace:Kendo.Mvc.UI
Assembly:Kendo.Mvc.dll
Syntax:
public class Rating : WidgetBase, IWidget, IHtmlAttributesContainer, IScriptableComponent, IFormEditor
Inheritance: objectWidgetBaseRating
Implements:
Inherited Members
Constructors
Initializes a new instance of the Rating class.
public Rating(ViewContext viewContext, IJavaScriptInitializer initializer, IUrlGenerator urlGenerator)
The view context
initializerIJavaScriptInitializerThe JavaScriptInitializer
urlGeneratorIUrlGeneratorThe URL generator.
Properties
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..
public bool? Enabled { get; set; }
Specifies the template which is used for rendering the hovered state of the items.
public string HoveredTemplate { get; set; }
The handler for the HoveredTemplate
public string HoveredTemplateHandler { get; set; }
The id for the HoveredTemplate
public string HoveredTemplateId { get; set; }
Specifies the template which is used for rendering the items of the Rating.
public string ItemTemplate { get; set; }
The handler for the ItemTemplate
public string ItemTemplateHandler { get; set; }
The id for the ItemTemplate
public string ItemTemplateId { get; set; }
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.
public RatingLabelSettings Label { get; set; }
The value from which the Rating items will be rendered.
public double? Min { get; set; }
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.
public string Precision { get; set; }
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..
public bool? Readonly { get; set; }
Specifies the template which is used for rendering the selected state of the items.
public string SelectedTemplate { get; set; }
The handler for the SelectedTemplate
public string SelectedTemplateHandler { get; set; }
The id for the SelectedTemplate
public string SelectedTemplateId { get; set; }
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.
public string Selection { get; set; }
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.
public double? SelectValueOnFocus { get; set; }
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.
public bool? Tooltip { get; set; }
Methods
public override IDictionary<string, object> Serialize()
Overrides:
Implements:
Writes the HTML.
protected override void WriteHtml(HtmlTextWriter writer)
The HtmlTextWriter.
Overrides:
Writes the initialization script.
public override void WriteInitializationScript(TextWriter writer)
The TextWriter.
Overrides: