|
Article relates to
|
all versions of RadSplitter
|
|
Created by
|
Tsvetelina, Telerik
|
|
Last modified
|
April 14, 2008
|
|
Last modified by
|
Svetlina, Telerik
|
HOW-TO
Make RadSplitter occupy part of a page with variable size
DESCRIPTION
Let us assume that you have created a page with header and footer and you want to split the entire area between those two elements with a RadSplitter control. In order to attain this, you need to set the
Height and
Width properties of the RadSplitter to 100%. However, you will encounter that the height of the result page exceeds the height of the browser window.
This KB article describes how to configure RadSplitter to occupy 100% of its container.
SOLUTION
The first step is to configure the splitter to occupy 100% of the page. Details about setting the
Height property of a RadSplitter to 100% are available
here.
The second step is to "tell" RadSplitter to occupy 100% of its container, not the page. To do this, you need to set the HeightOffset property of the splitter to the sum of the heights of the header and the footer.
<radspl:RadSplitter HeightOffset="200" id="[Your_Splitter_ID]" runat="server" Height="100%" Width="100%">
You can take advantage of this technique in any case that you need to force the RadSplitter control to occupy 100% of a part of your page.
The effect of the HeightOffset property of the RadSplitter is demonstrated in the attached files. You can see the page before the HeightOffset property is set in the Header_Footer_Scroll.jpg file. The Header_Footer_NoScroll.jpg file demonstrates the page after the property is set.

Since this article concerns only setting a single property (HeightOffset) and this property is also available in RadSplitter for ASP.NET AJAX (Prometheus) there are no differences in achieving the described layout.
Please
Sign In
to rate this article.