New to Telerik UI for ASP.NET MVC? Download free 30-day trial

Model Binding

When using the Telerik UI for ASP.NET MVC Rating component, you can bind the value to an arbitrary model property by using the RatingFor Helper.

    public IActionResult Index()
    {
        var model = new RatingModel 
        {
            Rating = 7
        };

        return View(model);
    }
    public class RatingModel
    {
        public int Rating { get; set; }
    }
    @model RatingModel

    @(Html.Kendo().RatingFor(model => model.Rating))

See Also

In this article