RatingBuilder
Defines the fluent API for configuring the Kendo UI Rating
Definition
Namespace:Kendo.Mvc.UI.Fluent
Assembly:Kendo.Mvc.dll
Syntax:
public class RatingBuilder : WidgetBuilderBase<Rating, RatingBuilder>, IHtmlContent
Inheritance: objectHelperResultWidgetBuilderBase<Rating, RatingBuilder>RatingBuilder
Implements:
Inherited Members
Constructors
Initializes a new instance of the RatingBuilder class.
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 for Enabled
Returns:Returns the current RatingBuilder instance.
Configures the client-side events.
public RatingBuilder Events(Action<RatingEventBuilder> configurator)
The client events action.
Returns:Returns the current RatingBuilder instance.
Specifies the template which is used for rendering the hovered state of the items.
public RatingBuilder HoveredTemplate(string value)
The value for HoveredTemplate
Returns:Returns the current RatingBuilder instance.
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:Returns the current RatingBuilder instance.
Specifies the template which is used for rendering the hovered state of the items.
public RatingBuilder HoveredTemplateHandler(string templateHandler)
The handler that returs the template for HoveredTemplate
Returns:Returns the current RatingBuilder instance.
Specifies the template which is used for rendering the hovered state of the items.
public RatingBuilder HoveredTemplateId(string templateId)
The ID of the template element for HoveredTemplate
Returns:Returns the current RatingBuilder instance.
Specifies the template which is used for rendering the hovered state of the items.
public RatingBuilder HoveredTemplateView(IHtmlContent templateView)
The view that contains the template for HoveredTemplate
Returns:Returns the current RatingBuilder instance.
Specifies the template which is used for rendering the items of the Rating.
public RatingBuilder ItemTemplate(string value)
The value for ItemTemplate
Returns:Returns the current RatingBuilder instance.
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:Returns the current RatingBuilder instance.
Specifies the template which is used for rendering the items of the Rating.
public RatingBuilder ItemTemplateHandler(string templateHandler)
The handler that returs the template for ItemTemplate
Returns:Returns the current RatingBuilder instance.
Specifies the template which is used for rendering the items of the Rating.
public RatingBuilder ItemTemplateId(string templateId)
The ID of the template element for ItemTemplate
Returns:Returns the current RatingBuilder instance.
Specifies the template which is used for rendering the items of the Rating.
public RatingBuilder ItemTemplateView(IHtmlContent templateView)
The view that contains the template for ItemTemplate
Returns:Returns the current RatingBuilder instance.
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 RatingLabelSettingsBuilder for the label setting.
Returns:Returns the current instance of RatingBuilder .
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:Returns the current instance of RatingLabelSettingsBuilder .
The value to which the Rating items will be rendered.
public RatingBuilder Max(double value)
The value for Max
Returns:Returns the current RatingBuilder instance.
The value from which the Rating items will be rendered.
public RatingBuilder Min(double value)
The value for Min
Returns:Returns the current RatingBuilder instance.
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 for Precision
Returns:Returns the current RatingBuilder instance.
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..
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 for Readonly
Returns:Returns the current RatingBuilder instance.
Specifies the template which is used for rendering the selected state of the items.
public RatingBuilder SelectedTemplate(string value)
The value for SelectedTemplate
Returns:Returns the current RatingBuilder instance.
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:Returns the current RatingBuilder instance.
Specifies the template which is used for rendering the selected state of the items.
public RatingBuilder SelectedTemplateHandler(string templateHandler)
The handler that returs the template for SelectedTemplate
Returns:Returns the current RatingBuilder instance.
Specifies the template which is used for rendering the selected state of the items.
public RatingBuilder SelectedTemplateId(string templateId)
The ID of the template element for SelectedTemplate
Returns:Returns the current RatingBuilder instance.
Specifies the template which is used for rendering the selected state of the items.
public RatingBuilder SelectedTemplateView(IHtmlContent templateView)
The view that contains the template for SelectedTemplate
Returns:Returns the current RatingBuilder instance.
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 for Selection
Returns:Returns the current RatingBuilder instance.
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 for SelectValueOnFocus
Returns:Returns the current RatingBuilder instance.
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 for Tooltip
Returns:Returns the current RatingBuilder instance.
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.
public RatingBuilder Value(double? value)
The initial value.
Returns:Returns the current RatingBuilder instance.
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.
public RatingBuilder Value(double value)
The value for Value
Returns:Returns the current RatingBuilder instance.
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.
public RatingBuilder Value(int? value)
The initial value.
Returns:Returns the current RatingBuilder instance.
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.
public RatingBuilder Value(int value)
The initial value.
Returns:Returns the current RatingBuilder instance.