# Orientation

The **Orientation** property of the **RadSplitter** control defines the **orientation of its split bars**:

* The **Horizontal** orientation renders horizontal split bars, which can be moved up and down to [resize the height of the splitter's panes](https://www.telerik.com/products/aspnet-ajax/documentation/controls/splitter/panes/resizing). The panes themselves are stacked vertically:

  ![](https://www.telerik.com/products/aspnet-ajax/documentation/assets/e61eea0cb24ae8b88479b9124ae4f235/splitter-horizontalsplitter.png)

* The **Vertical** orientation renders vertical split bars, which can be moved left and right to resize the width of the splitter's panes. The panes themselves are laid out side by side:

  ![](https://www.telerik.com/products/aspnet-ajax/documentation/assets/acded2c88327592d55e228118c2f9b01/splitter-simplesplitter.png)

> tip To create a splitter that contains both horizontal and vertical split bars you can nest several splitters with different orientations.

## Setting Orientation

You can assign the orientation declaratively in the **RadSplitter** declaration:

```ASP.NET
<telerik:RadSplitter
   runat="server"
   id="RadSplitter1"
   Orientation="Horizontal">
 <telerik:RadPane runat="server" id="TopPane">
   Top pane
 </telerik:RadPane>
 <telerik:RadSplitBar runat="server" id="RadSplitBar1" />
 <telerik:RadPane runat="server" id="MiddlePane">
   Middle pane
 </telerik:RadPane>
 <telerik:RadSplitBar runat="server" id="RadSplitBar2" />
 <telerik:RadPane runat="server" id="BottomPane">
   Bottom pane
 </telerik:RadPane>
</telerik:RadSplitter> 			
```

You can also set the **Orientation** property of the splitter from the code-behind:

```C#
protected void Page_Load(object sender, EventArgs e)
{
	if (!IsPostBack)
	{
		RadSplitter1.Orientation = Telerik.Web.UI.Orientation.Horizontal;
	}
} 		
```

```VB
Protected Sub Page_Load(ByVal sender As Object, _
	  ByVal e As System.EventArgs) Handles Me.Load
	If Not IsPostBack Then
		RadSplitter1.Orientation = Telerik.Web.UI.Orientation.Horizontal
	End If
End Sub	
```

## See Also

* [Nesting Splitters](https://www.telerik.com/products/aspnet-ajax/documentation/controls/splitter/layout/nesting-splitters)
