title: radsplitter on master page - adjust content height on page load
body: <p>I'm using the Telerik RadSplitter on my site as a collapsible nav container. But I want the Nav in the SiteMaster (aspx with C# behind). When the page loads, the RadPane is not growing to fit the loaded page content. Seems like the Splitter is not recognizing the content size.</p>
  
  <p>SITE.MASTER CODE:</p>
  
  <pre><code>&lt;telerik:RadSplitter ID="RadSplitter1" runat="server" Height="98%" Width="100%"&gt;
             &lt;telerik:RadPane runat="server" ID="RadPane1" Width="13%" Height="100%"&gt;
                  &lt;telerik:RadTreeView ID="MyTreeView" runat="server"&gt;
                  &lt;Nodes&gt;
                      &lt;telerik:RadTreeNode Value="Child1" Expanded="False" Text="Aging Reports"&gt;
                          &lt;Nodes&gt;
                              &lt;telerik:RadTreeNode Value="Grandchild1" Text="Failed Inspections" /&gt;
                              &lt;telerik:RadTreeNode Value="Grandchild2" Text="Pre-Con Inspections" /&gt;
                              &lt;telerik:RadTreeNode Value="Grandchild3" Text="Pre-Drywall Inspections" /&gt;
                          &lt;/Nodes&gt;
                      &lt;/telerik:RadTreeNode&gt;
                      &lt;telerik:RadTreeNode Value="Child2" Expanded="False" Text="Accounting"&gt;
                          &lt;Nodes&gt;
                              &lt;telerik:RadTreeNode Value="Grandchild1" Text="Top/Bottom Profits" /&gt;
                          &lt;/Nodes&gt;
                      &lt;/telerik:RadTreeNode&gt;
                      &lt;telerik:RadTreeNode Value="Child3" Expanded="False" Text="LG&amp;E Commercial"&gt;
                          &lt;Nodes&gt;
                              &lt;telerik:RadTreeNode Value="Grandchild1" Text="ECM/VRM Management" /&gt;
                          &lt;/Nodes&gt;
                      &lt;/telerik:RadTreeNode&gt;
                      &lt;telerik:RadTreeNode Value="Child4" Expanded="False" Text="LG&amp;E ESH Program"&gt;
                      &lt;/telerik:RadTreeNode&gt;
                      &lt;telerik:RadTreeNode Value="Child5" Expanded="False" Text="MA Office Management"&gt;
                          &lt;Nodes&gt;
                              &lt;telerik:RadTreeNode Value="Grandchild1" Text="Inventory Control (MICS)" /&gt;
                          &lt;/Nodes&gt;
                      &lt;/telerik:RadTreeNode&gt;
  
                  &lt;/Nodes&gt;
              &lt;/telerik:RadTreeView&gt;
             &lt;/telerik:RadPane&gt;
             &lt;telerik:RadSplitBar runat="server" ID="RadSplitbar1" CollapseMode="Forward"&gt;
             &lt;/telerik:RadSplitBar&gt;
             &lt;telerik:RadPane runat="server" ID="Radpane2" Width="85%" Height="100%"&gt;
                  &lt;asp:ContentPlaceHolder ID="MainContent" runat="server" EnableViewState="true" /&gt;
             &lt;/telerik:RadPane&gt;
        &lt;/telerik:RadSplitter&gt;
  </code></pre>
  
  <p>Thanks in advance.
  Gabe</p>