Splitter - Fill Container Size

Splitter with Width and Height set to 100%

Left Pane
Right Pane
Isolate this demo as a stand-alone application
  • About this demo
  • C#
  • VB

If you place the RadSplitter into a container element in the page you can set its Width and Height properties to 100% and this will resize the splitter to fill the dimensions of the container element. You should set all the panes dimensions in % as well.


The Splitter in the example above is nested into a layer with height set to 500px and width set to 800px. The Splitter's Width and Height properties are set to 100% to fill the entire layer size.

  • DefaultCS.aspx
<%@ Page Language="c#" AutoEventWireup="false"  %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns='http://www.w3.org/1999/xhtml'>
<head runat="server">
    <title>Telerik ASP.NET Example</title>
    <form id="form1" runat="server">
    <telerik:RadScriptManager runat="server" ID="RadScriptManager1" />
    <telerik:RadSkinManager ID="RadSkinManager1" runat="server" ShowChooser="true" />
    <div class="demo-container size-wide">
        <h2>Splitter with Width and Height set to 100%</h2>
        <div style="width: 800px; height: 500px; border: 2px solid orange; overflow:hidden;">
            <telerik:RadSplitter RenderMode="Lightweight" ID="RadSplitter1" runat="server" Height="100%" Width="100%">
                <telerik:RadPane runat="server" ID="RadPane1" Width="30%">
                    Left Pane
                <telerik:RadSplitBar runat="server" ID="RadSplitbar1" CollapseMode="Forward">
                <telerik:RadPane runat="server" ID="Radpane2" Width="70%">
                    Right Pane <br />

Find Assistance

Help Us Improve

Was this example helpful?