Rating Tag Helper Overview
The Telerik UI Rating tag helper for ASP.NET Core is a server-side wrapper for the Kendo UI Rating widget.
The Rating allows to intuitively rate by selecting number of items stars from a predefined maximum number of items.
The Rating is part of Telerik UI for ASP.NET Core, a
professional grade UI library with 100+ components for building modern and feature-rich applications. To try it out sign up for a free 30-day trial.
Initializing the Rating
The following example demonstrates how to define the Rating by using the Rating tag helper.
<kendo-rating name="rating"></kendo-rating>
Basic Configuration
The Rating tag helper configuration options are passed as attributes of the tag.
<kendo-rating name="rating" min="1" max="6" value="3"></kendo-rating>
Functionality and Features
Events
You can subscribe to all Rating events.
<kendo-rating name="rating" on-change="onChange" on-select="onSelect"></kendo-rating>
<script>
function onChange(e) {
console.log(e);
}
function onSelect(e) {
console.log(e);
}
</script>