Telerik is a leading vendor of ASP.NET AJAX, ASP.NET MVC, Silverlight, WinForms and WPF controls and components, as well as .NET Reporting, .NET ORM , .NET CMS, Code Analysis, Mocking, Team Productivity and Automated Testing Tools. Building on its expertise in interface development and Microsoft technologies, Telerik helps customers build applications with unparalleled richness, responsiveness and interactivity. Telerik products help thousands of companies to be more productive and deliver reliable applications under budget and on time.
Version Q2 2011 released 07/12/2011
select

Dock / Zone Orientation

Zone with Orientation="Horizontal" Height="150px" Width="650px"
 
RadDock1
 
 
RadDock1
 
     
 
RadDock2
 
 
RadDock2
 
     
 
RadDock3
 
 
RadDock3
 
     
 
RadDock4
 
 
RadDock4
 
     
Zone with Orientation="Horizontal" MinHeight="150px" Width="650px"
 
RadDock5
 
 
RadDock5
 
     
 
RadDock6
 
 
RadDock6
 
     
 
RadDock7
 
 
RadDock7
 
     
 
RadDock8
 
 
RadDock8
 
     
Zone with Orientation="Vertical" Height="150px" Width="320px"
 
RadDock9
 
 
RadDock9
 
     
 
RadDock10
 
 
RadDock10
 
     
 
RadDock11
 
 
RadDock11
 
     
 
RadDock12
 
 
RadDock12
 
     
Zone with Orientation="Vertical" MinHeight="150px" Width="320px"
 
RadDock13
 
 
RadDock13
 
     
 
RadDock14
 
 
RadDock14
 
     
 
RadDock15
 
 
RadDock15
 
     
 
RadDock16
 
 
RadDock16
 
     

  • RadDockZone Orientation

    RadDockZones can be Horizontal and Vertical. You can set their orientation using the Orientation property. By default the property value is set to Vertical.

    1) RadDockZone is vertical

    - Height property is set: RadDocks will be ordered vertically. Scrollbars will apear in the RadDockZone if RadDockZone cannot fit the RadDocks.

    - Height property is not set: RadDocks will be ordered vertically.RadDockZone will resize vertically to fit RadDocks

    2) RadDockZone is horizontal

    - Height property is set: RadDocks will be ordered horizontally until they reach RadDockZone width, after that they will be ordered horizontally on next row. Scrollbars will apear in RadDockZone if RadDockZone can not fit the RadDocks.

    - Height property is not set: RadDocks will be ordered horizontally until they reach RadDockZone width, after that they will be ordered horizontally on next row.RadDockZone will resize vertically to fit RadDocks.

Source Code

C# VB.NET
Show code in new window Demo isolation steps
  • <%@ Page Language="vb" AutoEventWireup="true" CodeFile="DefaultVB.aspx.vb" Inherits="Telerik.Web.Examples.Dock.ZoneOrientation.DefaultVB" %>

    <%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %>
    <%@ Register TagPrefix="qsf" Namespace="Telerik.QuickStart" %>
    <%@ Register TagPrefix="qsf" TagName="Header" Src="~/Common/Header.ascx" %>
    <%@ Register TagPrefix="qsf" TagName="HeadTag" Src="~/Common/HeadTag.ascx" %>
    <%@ Register TagPrefix="qsf" TagName="Footer" Src="~/Common/Footer.ascx" %>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head runat="server">
        <qsf:HeadTag ID="Headtag1" runat="server" />
        <!--[if lte IE 6]>
        <style type="text/css">
        .rdVertical{width:320px;height:150px}
        .rdHorizontal{height:150px}
        </style>
        <![endif]-->
    </head>
    <body class="BODY">
        <form id="Form1" method="post" runat="server">
        <qsf:Header ID="Header1" runat="server" NavigationLanguage="VB" />
        <telerik:RadScriptManager ID="ScriptManager" runat="server" />
        <telerik:RadDockLayout runat="server" ID="RadDockLayout1">
            <qsf:InformationBox ID="InformationBox1" runat="server">
                Zone with Orientation="Horizontal" Height="150px" Width="650px"
            </qsf:InformationBox>
            <telerik:RadDockZone runat="server" ID="RadDockZoneHorizontal1" Orientation="Horizontal"
                Height="150px" Width="650px">
                <telerik:RadDock runat="server" ID="RadDock1" Title="RadDock1" Text="RadDock1">
                </telerik:RadDock>
                <telerik:RadDock runat="server" ID="RadDock2" Title="RadDock2" Text="RadDock2">
                </telerik:RadDock>
                <telerik:RadDock runat="server" ID="RadDock3" Title="RadDock3" Text="RadDock3">
                </telerik:RadDock>
                <telerik:RadDock runat="server" ID="RadDock4" Title="RadDock4" Text="RadDock4">
                </telerik:RadDock>
            </telerik:RadDockZone>
            <qsf:InformationBox ID="InformationBox2" runat="server">
                Zone with Orientation="Horizontal" MinHeight="150px" Width="650px"
            </qsf:InformationBox>
            <telerik:RadDockZone runat="server" ID="RadDockZoneHorizontal2" Orientation="Horizontal"
                MinHeight="50px" Width="650px">
                <telerik:RadDock runat="server" ID="RadDock5" Title="RadDock5" Text="RadDock5">
                </telerik:RadDock>
                <telerik:RadDock runat="server" ID="RadDock6" Title="RadDock6" Text="RadDock6">
                </telerik:RadDock>
                <telerik:RadDock runat="server" ID="RadDock7" Title="RadDock7" Text="RadDock7">
                </telerik:RadDock>
                <telerik:RadDock runat="server" ID="RadDock8" Title="RadDock8" Text="RadDock8">
                </telerik:RadDock>
            </telerik:RadDockZone>
            <qsf:InformationBox ID="InformationBox3" runat="server" Title="">
                Zone with Orientation="Vertical" Height="150px" Width="320px"
            </qsf:InformationBox>
            <telerik:RadDockZone runat="server" ID="RadDockZoneVertical1" Orientation="Vertical"
                Height="150px" Width="320px">
                <telerik:RadDock runat="server" ID="RadDock9" Title="RadDock9" Text="RadDock9">
                </telerik:RadDock>
                <telerik:RadDock runat="server" ID="RadDock10" Title="RadDock10" Text="RadDock10">
                </telerik:RadDock>
                <telerik:RadDock runat="server" ID="RadDock11" Title="RadDock11" Text="RadDock11">
                </telerik:RadDock>
                <telerik:RadDock runat="server" ID="RadDock12" Title="RadDock12" Text="RadDock12">
                </telerik:RadDock>
            </telerik:RadDockZone>
            <qsf:InformationBox ID="InformationBox4" runat="server">
                Zone with Orientation="Vertical" MinHeight="150px" Width="320px"
            </qsf:InformationBox>
            <telerik:RadDockZone runat="server" ID="RadDockZoneVertical2" Orientation="Vertical"
                MinHeight="150px" Width="320px">
                <telerik:RadDock runat="server" ID="RadDock13" Title="RadDock13" Text="RadDock13">
                </telerik:RadDock>
                <telerik:RadDock runat="server" ID="RadDock14" Title="RadDock14" Text="RadDock14">
                </telerik:RadDock>
                <telerik:RadDock runat="server" ID="RadDock15" Title="RadDock15" Text="RadDock15">
                </telerik:RadDock>
                <telerik:RadDock runat="server" ID="RadDock16" Title="RadDock16" Text="RadDock16">
                </telerik:RadDock>
            </telerik:RadDockZone>
        </telerik:RadDockLayout>
        <qsf:Footer runat="server" ID="Footer1" ShowCodeViewer="true" />
        </form>
    </body>
    </html>

Get more than expected!

 
 

Take your time to truly experience the power of RadControls for ASP.NET AJAX with a free 60-day trial backed up by Telerik’s unlimited dedicated support.

Download your RadControls for ASP.NET AJAX trial and jumpstart your development with the available Getting Started resources.

If you have any questions, do not hesitate to contact us at sales@telerik.com.

Copyright 2002-2024 © Telerik. All right reserved
Telerik Inc, 201 Jones Rd, Waltham, MA 02451