Kendo.Mvc.UI.Fluent.RatingBuilder
Defines the fluent API for configuring the Kendo Rating for ASP.NET MVC.
Methods
Value(System.Nullable<System.Int32>)
Sets the initial value of the Rating.
Min(System.Double)
The value from which the Rating items will be rendered.
Parameters
value System.Double
The value that configures the min.
Max(System.Double)
The value to which the Rating items will be rendered.
Parameters
value System.Double
The value that configures the max.
Selection(System.String)
Specifies the selection behavior. The available options are:*continuous - all items, starting from the first one, are marked as selected. *item - a single item is marked as selected.
Parameters
value System.String
The value that configures the selection.
Precision(System.String)
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.
Parameters
value System.String
The value that configures the precision.
Tooltip(System.Boolean)
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 being rendered when the Rating is disabled or in a readonly mode.
Parameters
value System.Boolean
The value that configures the tooltip.
Label(System.Boolean)
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.
Parameters
enabled System.Boolean
Enables or disables the label option.
Label(System.Action<Kendo.Mvc.UI.Fluent.RatingLabelSettingsBuilder>)
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.
Parameters
configurator System.Action<Kendo.Mvc.UI.Fluent.RatingLabelSettingsBuilder>
The action that configures the label.
SelectValueOnFocus(System.Double)
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.
Parameters
value System.Double
The value that configures the selectvalueonfocus.
ItemTemplate(System.String)
Specifies the template which is used for rendering the items of the Rating.
Parameters
value System.String
The value that configures the itemtemplate.
ItemTemplateId(System.String)
Specifies the template which is used for rendering the items of the Rating.
Parameters
value System.String
The value that configures the itemtemplate.
SelectedTemplate(System.String)
Specifies the template which is used for rendering the selected state of the items.
Parameters
value System.String
The value that configures the selectedtemplate.
SelectedTemplateId(System.String)
Specifies the template which is used for rendering the selected state of the items.
Parameters
value System.String
The value that configures the selectedtemplate.
HoveredTemplate(System.String)
Specifies the template which is used for rendering the hovered state of the items.
Parameters
value System.String
The value that configures the hoveredtemplate.
HoveredTemplateId(System.String)
Specifies the template which is used for rendering the hovered state of the items.
Parameters
value System.String
The value that configures the hoveredtemplate.
Enabled(System.Boolean)
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..
Parameters
value System.Boolean
The value that configures the enabled.
Readonly(System.Boolean)
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 taborder and able to receive focus. or submit data if part of a form..
Parameters
value System.Boolean
The value that configures the readonly.
Value(System.Nullable<System.Double>)
Specifies the initial value of the Rating.
Parameters
value System.Nullable<System.Double>
The value that configures the value.
Events(System.Action<Kendo.Mvc.UI.Fluent.RatingEventBuilder>)
Configures the client-side events.
Parameters
configurator System.Action<Kendo.Mvc.UI.Fluent.RatingEventBuilder>
The client events action.
Example (ASPX)
<%= Html.Kendo().Rating()
.Name("Rating")
.Events(events => events
.Change("onChange")
)
%>