RatingBuilder
Defines the fluent API for configuring the Kendo Rating for ASP.NET MVC.
Definition
Namespace:Kendo.Mvc.UI.Fluent
Assembly:Kendo.Mvc.dll
Syntax:
public class RatingBuilder : WidgetBuilderBase<Rating, RatingBuilder>, IHtmlString
Inheritance: objectWidgetBuilderBase<Rating, RatingBuilder>RatingBuilder
Implements:
Inherited Members
Constructors
Methods
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 RatingBuilder Enabled(bool value)
The value that configures the enabled.
Returns:Configures the client-side events.
public RatingBuilder Events(Action<RatingEventBuilder> configurator)
The client events action.
Returns:Specifies the template which is used for rendering the hovered state of the items.
public RatingBuilder HoveredTemplate(string value)
The value that configures the hoveredtemplate.
Returns:Specifies the template which is used for rendering the hovered state of the items.
public RatingBuilder HoveredTemplate<TModel>(TemplateBuilder<TModel> template)
A Template component that configures the hoveredtemplate.
Returns:Specifies the template which is used for rendering the hovered state of the items.
public RatingBuilder HoveredTemplateHandler(string value)
The value that configures the hoveredtemplate.
Returns:Specifies the template which is used for rendering the hovered state of the items.
public RatingBuilder HoveredTemplateId(string value)
The value that configures the hoveredtemplate.
Returns:Specifies the template which is used for rendering the hovered state of the items.
public RatingBuilder HoveredTemplateView(MvcHtmlString value)
The value that configures the hoveredtemplate.
Returns:Specifies the template which is used for rendering the items of the Rating.
public RatingBuilder ItemTemplate(string value)
The value that configures the itemtemplate.
Returns:Specifies the template which is used for rendering the items of the Rating.
public RatingBuilder ItemTemplate<TModel>(TemplateBuilder<TModel> template)
A Template component that configures the itemtemplate.
Returns:Specifies the template which is used for rendering the items of the Rating.
public RatingBuilder ItemTemplateHandler(string value)
The value that configures the itemtemplate.
Returns:Specifies the template which is used for rendering the items of the Rating.
public RatingBuilder ItemTemplateId(string value)
The value that configures the itemtemplate.
Returns:Specifies the template which is used for rendering the items of the Rating.
public RatingBuilder ItemTemplateView(MvcHtmlString value)
The value that configures the itemtemplate.
Returns: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 RatingBuilder Label(Action<RatingLabelSettingsBuilder> configurator)
The action that configures the label.
Returns: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 RatingBuilder Label(bool enabled)
Enables or disables the label option.
Returns:The value to which the Rating items will be rendered.
public RatingBuilder Max(double value)
The value that configures the max.
Returns:The value from which the Rating items will be rendered.
public RatingBuilder Min(double value)
The value that configures the min.
Returns: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 RatingBuilder Precision(string value)
The value that configures the precision.
Returns: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 RatingBuilder Readonly(bool value)
The value that configures the readonly.
Returns:Specifies the template which is used for rendering the selected state of the items.
public RatingBuilder SelectedTemplate(string value)
The value that configures the selectedtemplate.
Returns:Specifies the template which is used for rendering the selected state of the items.
public RatingBuilder SelectedTemplate<TModel>(TemplateBuilder<TModel> template)
A Template component that configures the selectedtemplate.
Returns:Specifies the template which is used for rendering the selected state of the items.
public RatingBuilder SelectedTemplateHandler(string value)
The value that configures the selectedtemplate.
Returns:Specifies the template which is used for rendering the selected state of the items.
public RatingBuilder SelectedTemplateId(string value)
The value that configures the selectedtemplate.
Returns:Specifies the template which is used for rendering the selected state of the items.
public RatingBuilder SelectedTemplateView(MvcHtmlString value)
The value that configures the selectedtemplate.
Returns: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 RatingBuilder Selection(string value)
The value that configures the selection.
Returns: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 RatingBuilder SelectValueOnFocus(double value)
The value that configures the selectvalueonfocus.
Returns: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 RatingBuilder Tooltip(bool value)
The value that configures the tooltip.
Returns:Specifies the initial value of the Rating. If the initial value is greater than the specified Max() option, the maximum value will be set as initial. If the initial value is less than the specified Min() option, the minimum value will be set as initial.
Sets the initial value of the Rating. If the initial value is greater than the specified Max() option, the maximum value will be set as initial. If the initial value is less than the specified Min() option, the minimum value will be set as initial.