Orientation

1 Oct 20151 minute to read

Rating provides support for the vertical orientation. By default, Rating renders with horizontal orientation. You can the change the orientation by the orientation property.

Add the following code example to the corresponding ASPX page to render the Rating with the customized orientation.

  • HTML
  • <div id="container" style="border: 1px solid black; width: 300px; padding: 2px">
    
                <table>
    
                    <tr>
    
                        <td valign="top">Rating:
    
                        </td>
    
                        <td>
    
                            <ej:Rating ID="Rating1" Orientation="Vertical"runat="server"> </ej:Rating>
    
                        </td>
    
                    </tr>
    
                </table>
    
    </div>

    The following screenshot displays the output of the above code example.