I am currently working on moving our company Intranet to the new Prometheus controls and improving/updating it along the way. I am at the initial design phase and I am trying to figure out how to incorporate RadDock into a Master/Content Page situation. As of now I have a master page with 9 different Content zones 3 for the header, 3 for the body and 3 for the footer. Reason I have so many is that I want to be able to make the layout/design changes to the master, but still have the flexibilty to add things where I need them on my Content pages.
How RadDock comes into play is that right now I have a RadDockLayout control on the MasterPage as teh main container. I then have added RadDockZones and RadDocks to the appropriate Content areas on the pages that need them. Everything seems to work appropriatly, except I can't seem to float a RadDock after it has been docked in a zone and I have yet come to the part hwere I will need to save and load layouts. I am wondering if this will be possible since I have the RadDockLayout on my MasterPage. Is this the appropriate place for it?
Anyhow hope all of this is kind of clear and that you can offer me soem direction. Below is my current MasterPage and my current Default content page. Thanks as always!
MasterPage
How RadDock comes into play is that right now I have a RadDockLayout control on the MasterPage as teh main container. I then have added RadDockZones and RadDocks to the appropriate Content areas on the pages that need them. Everything seems to work appropriatly, except I can't seem to float a RadDock after it has been docked in a zone and I have yet come to the part hwere I will need to save and load layouts. I am wondering if this will be possible since I have the RadDockLayout on my MasterPage. Is this the appropriate place for it?
Anyhow hope all of this is kind of clear and that you can offer me soem direction. Below is my current MasterPage and my current Default content page. Thanks as always!
MasterPage
| <%@ Master Language="C#" AutoEventWireup="true" CodeFile="MasterPage.master.cs" Inherits="MasterPage" %> |
| <%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %> |
| <%@ Register Src="Controls/Search/Search.ascx" TagName="Search" TagPrefix="uc1" %> |
| <!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"> |
| <head runat="server"> |
| <link href="App_Themes/Default/CSS/Style.css" rel="stylesheet" type="text/css" /> |
| <title>KCDC Intranet</title> |
| </head> |
| <body> |
| <form id="form1" runat="server"> |
| <asp:ScriptManager ID="ScriptManager1" runat="server" /> |
| <telerik:RadDockLayout ID="layoutDock" runat="server"> |
| <table id="pageHeader" cellpadding="0" cellspacing="0"> |
| <tr> |
| <td class="headerLeft" valign="top"> |
| <asp:ContentPlaceHolder ID="HeaderLeftContent" runat="server"> |
| </asp:ContentPlaceHolder> |
| </td> |
| <td class="headerMiddle" valign="top"> |
| <asp:ContentPlaceHolder ID="HeaderMiddleContent" runat="server"> |
| </asp:ContentPlaceHolder> |
| </td> |
| <td class="headerRight" valign="top"> |
| <asp:ContentPlaceHolder ID="HeaderRightContent" runat="server"> |
| </asp:ContentPlaceHolder> |
| </td> |
| </tr> |
| </table> |
| <div id="pageLogo"> |
| <asp:ImageButton ID="btnLogo" runat="server" SkinID="LogoButton" OnClick="btnLogo_Click" |
| BorderWidth="0px" /> |
| </div> |
| <div id="pageTitle"> |
| <asp:Label ID="labelTitle" runat="server" Text="" /> |
| </div> |
| <div> |
| <uc1:Search ID="Search1" runat="server" /> |
| </div> |
| <table id="pageBody" cellpadding="0" cellspacing="0"> |
| <tr> |
| <td class="pageLeftColumn"> |
| <asp:ContentPlaceHolder ID="LeftColumnContent" runat="server"> |
| </asp:ContentPlaceHolder> |
| </td> |
| <td class="pageRightColumn"> |
| <asp:ContentPlaceHolder ID="RightColumnContent" runat="server"> |
| </asp:ContentPlaceHolder> |
| </td> |
| </tr> |
| <tr> |
| <td colspan="2"> |
| <table id="pageFooter" cellpadding="0" cellspacing="0"> |
| <tr> |
| <td class="pageFooterLeft"> |
| <asp:ContentPlaceHolder ID="FooterLeftContent" runat="server"> |
| </asp:ContentPlaceHolder> |
| <asp:ImageButton ID="imgXHTML" runat="server" SkinID="XHTMLButton" OnClick="imgXHTML_Click" /> |
| <asp:ImageButton ID="imgCSS" runat="server" SkinID="CSSButton" OnClick="imgXHTML_Click" /> |
| </td> |
| <td class="pageFooterMiddle"> |
| <asp:ContentPlaceHolder ID="FooterMiddleContent" runat="server"> |
| </asp:ContentPlaceHolder> |
| </td> |
| <td class="pageFooterRight"> |
| <asp:ContentPlaceHolder ID="FooterRightContent" runat="server"> |
| </asp:ContentPlaceHolder> |
| </td> |
| </tr> |
| </table> |
| </td> |
| </tr> |
| </table> |
| </telerik:RadDockLayout> |
| </form> |
| </body> |
| </html> |
Default Page
| <%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" |
| CodeFile="Default.aspx.cs" Inherits="_Default" Title="Home Page" %> |
| <%@ MasterType VirtualPath="~/MasterPage.master" %> |
| <%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %> |
| <asp:Content ID="Content1" ContentPlaceHolderID="HeaderLeftContent" runat="Server"> |
| </asp:Content> |
| <asp:Content ID="Content2" ContentPlaceHolderID="HeaderMiddleContent" runat="Server"> |
| </asp:Content> |
| <asp:Content ID="Content3" ContentPlaceHolderID="HeaderRightContent" runat="Server"> |
| </asp:Content> |
| <asp:Content ID="Content4" ContentPlaceHolderID="LeftColumnContent" runat="Server"> |
| <telerik:RadDockZone ID="dockZoneLeft" runat="server" Width="99%" MinHeight="400px" |
| CssClass="dockZoneLeftColumn" HighlightedCssClass="dockZoneLeftColumnHighlight" |
| Orientation="Vertical" BorderStyle="None"> |
| <telerik:RadDock ID="dockKCDCNews" runat="server" Width="99%" Title="KCDC News" CssClass="dockKCDCNews" |
| DockMode="Default"> |
| <ContentTemplate> |
| News Window |
| </ContentTemplate> |
| </telerik:RadDock> |
| </telerik:RadDockZone> |
| </asp:Content> |
| <asp:Content ID="Content5" ContentPlaceHolderID="RightColumnContent" runat="Server"> |
| <telerik:RadDockZone ID="dockZoneRight" runat="server" Width="75%" MinHeight="400px" |
| CssClass="dockZoneRightColumn" HighlightedCssClass="dockZoneRightColumnHighlight" |
| Orientation="Horizontal" BorderStyle="None"> |
| <telerik:RadDock ID="dockWeather" runat="server" Width="99%" CssClass="dockWeather" |
| Title="Weather Forecast" DockMode="Default"> |
| <ContentTemplate> |
| Weather Window |
| </ContentTemplate> |
| </telerik:RadDock> |
| </telerik:RadDockZone> |
| </asp:Content> |
| <asp:Content ID="Content6" ContentPlaceHolderID="FooterLeftContent" runat="Server"> |
| </asp:Content> |
| <asp:Content ID="Content7" ContentPlaceHolderID="FooterMiddleContent" runat="Server"> |
| </asp:Content> |
| <asp:Content ID="Content8" ContentPlaceHolderID="FooterRightContent" runat="Server"> |
| </asp:Content> |