[Expand]General Information
[Expand]WinForms Controls
[Collapse]ASP.NET Controls and MVC Extensions
 [Expand]Prerequisites
 [Expand]What's Installed
 [Expand]Common Concepts
 [Expand]ASP.NET WebForms Controls
 [Collapse]ASP.NET MVC Extensions
  [Expand]Product Information
  [Expand]Getting Started
  [Expand]Common Concepts
  [Expand]Grid View
  [Expand]Tree List
  [Expand]Card View
  [Expand]Reporting
  [Expand]Charting
  [Expand]Pivot Grid
  [Expand]Spreadsheet
  [Expand]Rich Text Editor
  [Expand]Scheduler
  [Expand]Site Navigation and Layout
  [Expand]HTML Editor
  [Expand]Vertical Grid
  [Expand]Data Editors Extensions
  [Expand]Docking and Popups
  [Expand]File Management
  [Expand]Data and Image Navigation
  [Collapse]Multi-Use Site Extensions
   [Collapse]RatingControl
     Overview - RatingControl
    [Expand]Concepts
    [Expand]Visual Elements
   [Expand]CallbackPanel
   [Expand]RoundPanel
  [Expand]SpellChecker
  [Expand]Query Builder
 [Expand]Localization
 [Expand]Redistribution and Deployment
  Get More Help
 [Expand]API Reference
[Expand]ASP.NET Bootstrap Controls
[Expand]ASP.NET Core Bootstrap Controls
[Expand]WPF Controls
[Expand]Xamarin Controls
[Expand]Windows 10 App Controls
[Expand]Office File API
[Expand]Reporting
[Expand]Report and Dashboard Server
[Expand]Dashboard
[Expand]eXpressApp Framework
[Expand]CodeRush
[Expand]CodeRush Classic
[Expand]Cross-Platform Core Libraries
[Expand]Tools and Utilities
 End-User Documentation

Overview - RatingControl

The DevExpress ASP.NET MVC RatingControl extension allows users to rate web site content by clicking icons that represent ratings ("stars" by default).

To learn more about RatingControl and see it in action, refer to the online Rating Control demos.

Expanded Implementation Details

RatingControl is realized by the RatingControlExtension class. Its instance can be accessed via the ExtensionsFactory.RatingControl helper method, which is used to add a RatingControl extension to a view. This method's parameter provides access to the RatingControl's settings implemented by the RatingControlSettings class, allowing you to fully customize the extension.

The RatingControl extension's client counterpart is represented by the ASPxClientRatingControl object.

Expanded Declaration

RatingControl can be added to a view in the following manner.

View code (Razor):

The image below illustrates the results.

Expanded See Also

Is this topic helpful?​​​​​​​