Greetings All,
After racking my brain for hours, and spending several more hours searching for an elegant solution, I have yet to find an answer to my problem and am hoping fellow RadControl users or Telerik might point me in the right direction.
Problem: I would like to place two equally sized vertically oriented RadZones in a DIV such that the radzones + 5px margins fill 100% of the parent container (see conceptual.jpg). However, I have been unable to find the right combination of CSS and RadZone settings to accomplish this task much less find a solution that is browser agnostic.
Code:
CSS:
Any help readers can provide would be gratefully appreciated.
After racking my brain for hours, and spending several more hours searching for an elegant solution, I have yet to find an answer to my problem and am hoping fellow RadControl users or Telerik might point me in the right direction.
Problem: I would like to place two equally sized vertically oriented RadZones in a DIV such that the radzones + 5px margins fill 100% of the parent container (see conceptual.jpg). However, I have been unable to find the right combination of CSS and RadZone settings to accomplish this task much less find a solution that is browser agnostic.
Code:
| <!DOCTYPE html PUBLIC |
| \"-//W3C//DTD XHTML 1.0 Transitional//EN\" |
| \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\"> |
| <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> |
| <head> |
| <title>Proof of Concept App</title> |
| <asp:ContentPlaceHolder ID="head" runat="server" /> |
| <script type='text/javascript' src='js/jquery-1.3.1.min.js'></script> |
| <script type='text/javascript' src='js/easing.js'></script> |
| <script type="text/javascript"> |
| $(document).ready(function () { |
| $("div#handle").click(function (e) { |
| e.preventDefault(); |
| $("div#sidebar_content").toggle("fast"); |
| }); |
| }); |
| </script> |
| <link href="css/reset.css" rel="stylesheet" type="text/css" /> |
| <link href="css/global.css" rel="stylesheet" type="text/css" /> |
| <link href="css/master.css" rel="stylesheet" type="text/css" /> |
| </head> |
| <body> |
| <form id="form1" runat="server"> |
| <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server"> |
| </telerik:RadAjaxManager> |
| <telerik:RadScriptManager ID="RadScriptManager1" runat="server"> |
| </telerik:RadScriptManager> |
| <div id="pagewrap"> |
| <div id="header"> |
| <div class="logo"><img src="images/logo.gif" alt="itrack_logo" /></div> |
| <div class="info"><%=GetGreeting() %> <b>Username</b>.<br />You have XX action items in your queue.</div> |
| <div id="topnav"> |
| </div> |
| <div id="breadcrumbs"> |
| <ul> |
| <li><a href="#" title="Dashboard">Dashboard</a></li> |
| <li><a href="#" title="Section">Section</a></li> |
| <li><a href="#" title="Type">Type</a></li> |
| <li>Instance</li> |
| </ul> |
| </div> |
| </div> |
| <div id="contentwrap"> |
| <div id="sidebar_content"> |
| <rad:RadPanelbar runat="server" ID="RadPanelbar1" Height="100%" Width = "100%" |
| Skin="WebBlue" ExpandMode="FullExpandedItem" CollapseAnimation-Type="none" ExpandAnimation-Type="None"> |
| <Items> |
| <rad:RadPanelItem Text="Menu Item 1" Expanded="true"> |
| <Items> |
| <rad:RadPanelItem> |
| <ItemTemplate> |
| Lorem<br /> |
| Ipsum<br /> |
| Dolar |
| </ItemTemplate> |
| </rad:RadPanelItem> |
| </Items> |
| </rad:RadPanelItem> |
| <rad:RadPanelItem Text="Menu Item 2 COAs"> |
| <Items> |
| <rad:RadPanelItem> |
| <ItemTemplate> |
| Lorem<br /> |
| Ipsum<br /> |
| Dolar |
| </ItemTemplate> |
| </rad:RadPanelItem> |
| </Items> </rad:RadPanelItem> |
| <rad:RadPanelItem Text="Menu Item 3"> |
| <Items> |
| <rad:RadPanelItem> |
| <ItemTemplate> |
| Lorem<br /> |
| Ipsum<br /> |
| Dolar |
| </ItemTemplate> |
| </rad:RadPanelItem> |
| </Items> |
| </rad:RadPanelItem> |
| </Items> |
| </rad:RadPanelbar> |
| </div> |
| <div id="handle" ><div class="top"></div><div class="grippy"></div><div class="bottom"></div></div> |
| <div id="main"> |
| <rad:RadDockLayout ID="RadDockLayout1" runat="server" Skin="Web20" > |
| <%--Would like to create two equally sized zones having | 5 px | Zone Left ((Div width - 15)/2) px | 5px | Zone Right ((Div width - 15)/2) px | 5 px |--%> |
| <rad:RadDockZone ID="zoneLeft" runat="server" Orientation="Vertical" > |
| <rad:RadDock ID="RadDock1" Runat="server"> |
| <ContentTemplate> |
| Lorem Ipsum Dolar |
| </ContentTemplate> |
| </rad:RadDock> |
| </rad:RadDockZone> |
| <rad:RadDockZone ID="zoneRight" runat="server" Orientation="Vertical"> |
| </rad:RadDockZone> |
| </rad:RadDockLayout> |
| </div> |
| </div> |
| </div> |
| </form> |
| </body> |
| </html> |
CSS:
| div#pagewrap{position:absolute;width:100%;height:100%;margin:0 auto 0 auto}div#contentwrap{position:absolute;top:87px;bottombottom:5px;overflow:scroll;padding-right:5px}div#header{position:relative;top:0;width:100%;height:85px;overflow:hidden;margin:0;background:url(../images/header_bkgd.gif) repeat-x}#header .logo{float:left}#header .info{float:rightright;padding:5px;font-family:arial;color:#fff;font-size:12px;text-align:rightright}#topnav{vertical-align:middle;font-weight:bold;color:#fff;height:43px}#breadcrumbs{position:absolute;top:43px;left:255px;font:13px Arial,Helvetica,sans-serif;background-image:url(../images/bc_bg.gif);background-repeat:repeat-x;height:30px;line-height:30px;color:#ddd;overflow:hidden;margin:0;padding:0;width:100%}#breadcrumbs ul,li{list-style-type:none;padding:0;margin:0}#breadcrumbs li{float:left;display:inline-block;padding-left:10px;height:30px;line-height:30px}#breadcrumbs a{display:inline-block;background-image:url(../images/bc_separator.gif);background-repeat:no-repeat;background-position:rightright;padding-right:15px;text-decoration:none;color:#fff;outline:none;height:30px;line-height:30px}#breadcrumbs .home{border:none;margin:8px 0}#breadcrumbs li a:link,#breadcrumbs li a:visited{text-decoration:none;color:#fff}#breadcrumbs li a:hover,#breadcrumbs li a:focus{color:red}div#sidebar_content{height:100%;border-right:solid 1px #DDD;background-color:#707173;width:300px;float:left}div#handle{height:100%;text-decoration:none;width:10px;float:left;margin-right:5px;background-color:#adadad}#handle .bottombottom{position:absolute;bottombottom:0;width:10px;height:10px;margin:0;padding:0;background:url(../images/sb_bottom.gif) no-repeat bottombottom left;background-color:#fff}#handle .top{position:absolute;top:0;width:10px;height:10px;margin:0;padding:0;background:url(../images/sb_top.gif) no-repeat top left;background-color:#fff}#handle .grippy{position:absolute;top:50%;align:center;background:url(../images/LibC.gif) -178px 0;width:5px;height:20px;margin-left:3px}div#handle.open{background-color:#aaa}div#handle.close{background-color:#ccc}div#main{position:relative;height:100%;width:100%;background-color:#ccc;overflow-y:auto} |
Any help readers can provide would be gratefully appreciated.