I am a new user of Telerik tools and am trying to figure out how to build a simple web page with RadPanes using the RadSplitter tool. I have followed the online docs and am having trouble with the RadSplitter resizing with the window. When the browser window first comes up the RadSplitter and associated RadPanes are correctly sized to the window, but if you try to resize the window larger or smaller the RadSplitter does not resize with the window. Perhaps I am missing something, so here is the code that I have below.
Also wondering if it is possible to use a separate CSS file to handle the style of the RadPanes. It seems that when I set some of the style properties of the RadPanes, they do not show up.
And is it possible to use the HTML5 Doctype instead of the default XHTML 1.1 that is created with the Telerik Web App?
Thanks,
Charlie
Also wondering if it is possible to use a separate CSS file to handle the style of the RadPanes. It seems that when I set some of the style properties of the RadPanes, they do not show up.
And is it possible to use the HTML5 Doctype instead of the default XHTML 1.1 that is created with the Telerik Web App?
Thanks,
Charlie
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="Default" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/tr/xhtml11/dtd/xhtml11.dtd">
<
html
style
=
"height:100%"
>
<
head
runat
=
"server"
>
<
title
>Telerik Real Estate Demo</
title
>
<
telerik:RadStyleSheetManager
id
=
"RadStyleSheetManager1"
runat
=
"server"
/>
</
head
>
<
body
style
=
"margin:0px;height:100%;overflow:hidden;"
>
<
form
id
=
"form1"
runat
=
"server"
style
=
"height:100%;margin:0px;"
>
<
telerik:RadScriptManager
ID
=
"RadScriptManager1"
runat
=
"server"
>
<
Scripts
>
<
asp:ScriptReference
Assembly
=
"Telerik.Web.UI"
Name
=
"Telerik.Web.UI.Common.Core.js"
/>
<
asp:ScriptReference
Assembly
=
"Telerik.Web.UI"
Name
=
"Telerik.Web.UI.Common.jQuery.js"
/>
<
asp:ScriptReference
Assembly
=
"Telerik.Web.UI"
Name
=
"Telerik.Web.UI.Common.jQueryInclude.js"
/>
</
Scripts
>
</
telerik:RadScriptManager
>
<
script
type
=
"text/javascript"
>
//Put your JavaScript code here.
</
script
>
<
telerik:RadAjaxManager
ID
=
"RadAjaxManager1"
runat
=
"server"
>
</
telerik:RadAjaxManager
>
<
div
id
=
"header"
style
=
"border: solid 2px black;"
>
<
h3
>Telerik Real Estate Demo</
h3
>
</
div
>
<
div
id
=
"mainPage"
style
=
"border: solid 2px black; width: 100%; height: 100%;"
>
<
telerik:RadSplitter
ID
=
"RadSplitter1"
runat
=
"server"
Orientation
=
"Horizontal"
Height
=
"100%"
Width
=
"100%"
>
<
telerik:RadPane
ID
=
"topHalfRad"
runat
=
"server"
BorderStyle
=
"Solid"
BorderWidth
=
"2"
BorderColor
=
"#0033CC"
MinHeight
=
"200"
MinWidth
=
"200"
Scrolling
=
"None"
Width
=
"800"
Height
=
"300"
>
<
telerik:RadSplitter
ID
=
"RadSplitter2"
runat
=
"server"
Orientation
=
"Vertical"
>
<
telerik:RadPane
ID
=
"topLeftRad"
runat
=
"server"
BorderColor
=
"Lime"
BorderStyle
=
"Solid"
BorderWidth
=
"2"
MinHeight
=
"200"
MinWidth
=
"200"
Width
=
"390"
>
Left Pane
</
telerik:RadPane
>
<
telerik:RadSplitBar
ID
=
"RadSplitBar2"
runat
=
"server"
CollapseMode
=
"Both"
/>
<
telerik:RadPane
ID
=
"topRightRad"
runat
=
"server"
BorderColor
=
"#CC00FF"
BorderStyle
=
"Solid"
BorderWidth
=
"2"
MinHeight
=
"200"
MinWidth
=
"200"
Width
=
"390"
>
Right Pane
</
telerik:RadPane
>
</
telerik:RadSplitter
>
</
telerik:RadPane
>
<
telerik:RadSplitBar
ID
=
"RadSplitBar1"
runat
=
"server"
CollapseMode
=
"Both"
/>
<
telerik:RadPane
ID
=
"botHalfRad"
runat
=
"server"
BorderColor
=
"#660033"
BorderStyle
=
"Solid"
BorderWidth
=
"2"
MinHeight
=
"200"
MinWidth
=
"400"
Width
=
"800"
Height
=
"300"
>
Bottom Pane
</
telerik:RadPane
>
</
telerik:RadSplitter
>
</
div
>
</
form
>
</
body
>
</
html
>