Splitter Orientation

8 Aug 20171 minute to read

The Splitter supports both vertical and horizontal orientation of the pane. You can declare the orientation by using enum, ej.Orientation.Vertical or ej.Orientation.Horizontal, that have the corresponding value of vertical and horizontal as a string.

Configure Splitter Orientation

The following steps explain the implementation of Splitter orientation option.

  1. In the View page, add the Splitter helper and configure the ‘Orientation’ property as shown below.
  • CSHTML
  • @{Html.EJ().Splitter("Splitter").Height("360").Width("500").Orientation(Orientation.Vertical).PaneProperties(
    
    p =>
    
    {
    
    	p.Add().ContentTemplate(
    
    		@<div>
    
    			 <div style="padding: 0px 15px;">
    
    				 <h3 class="h3">Tools </h3>
    
    				 Essential Tools is an collection of user interface components used to create interactive
    
    				 ASP.NET MVC applications.
    
    			 </div>
    
    		</div>);
    
    			p.Add().ContentTemplate(
    
    		@<div>
    
    			 <div style="padding: 0px 15px;">
    
    				 <h3 class="h3">Grid </h3>
    
    				 Essential MVC Grid offers full featured a Grid control with extensive support for
    
    				 Grouping and the display of hierarchical data.
    
    			 </div>
    
    		</div>);
    
    }).Render();}

    The output for Splitter with ej.Orientation.Vertical.

    The output for Splitter with ej.Orientation.Horizontal.