13 Oct 20161 minute to read

Rating provides support for Vertical orientation. By default Rating renders with Horizontal orientation. You can change the orientation by the Orientation property.

The following code example is used to render the Rating control with Vertical orientation.

Add the following code in your view page to render the Rating with customizedOrientation.

  • // Add the following code example to the corresponding CSHTML page to render Rating with customized orientation.
    <div id="container" style="border: 1px solid black; width: 300px; padding: 2px">
                <td valign="top">Rating:
                    <ej-rating id="orientRating" orientation="@Orientation.Vertical"/>

    The following screenshot illustrates the Rating with Vertical orientation.