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

PanelBar / Outlook Navigation

Favourite Folders
  • Personal Folders
    • Deleted Items (6)
    • Drafts
    • Inbox (14)
      • Invoices
      • Tasks
      • Other
    • Junk E-mail
    • Outbox
    • Sent Items
    • Search Folders
All Mail Folders
  • Personal Folders
    • Deleted Items (6)
    • Drafts
    • Inbox (14)
      • Invoices
      • Tasks
      • Other
    • Junk E-mail
    • Outbox
    • Sent Items
    • Search Folders
Calendar

  • This example illustrates how you can easily integrate RadPanelBar, RadMultiPage and RadTreeView to simulate Outlook navigation.

    Drag a node from one RadTreeView and drop it onto another RadTreeView in a different pageview when hovering the panel item.

Source Code

C# VB.NET
Show code in new window Demo isolation steps
  • <%@ 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" %>

    <%@ Page CodeFile="DefaultCS.aspx.cs" Language="c#" AutoEventWireup="true" Inherits="Telerik.PanelbarExamplesCSharp.Integration.DefaultCS" %>

    <!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 runat="server" ID="Headtag1"></qsf:HeadTag>

        <script type="text/javascript">
        //<!--
        var blnDragging = false;
                function OnClientItemClicking(sender, eventArgs)
                {
                    var multipage=$find("RadMultiPage1");
                    multipage.set_selectedIndex(eventArgs.get_item().get_index());
                }
                function BeforeDragHandler()
                {
                    blnDragging = true;
                }
                
                function BeforeDropHandler()
                {
                    blnDragging = false;    
                }

            //-->    
        </script>

        <link rel="stylesheet" href="styles.css" type="text/css" />
    </head>
    <body class="BODY">

        <script type="text/javascript">
        <!--
        function panelMouseOver(sender, eventArgs)
                {
                    if (eventArgs.get_item().get_text().indexOf("Folders") != -1 && blnDragging)
                    {
                        var multipage=$find("RadMultiPage1");
                        multipage.set_selectedIndex(eventArgs.get_item().get_index());
                    }
                }
        -->    
        </script>

        <form runat="server" id="mainForm" method="post">
            <telerik:RadScriptManager ID="ScriptManager" runat="server" />
            <qsf:Header ID="Header1" runat="server" NavigationLanguage="C#" ShowSkinChooser="false"></qsf:Header>
            <div id="qsfexWrapper">
                <telerik:RadMultiPage ID="RadMultiPage1" runat="server" SelectedIndex="0" Height="240px"
                    Width="198px" BackColor="White" BorderColor="#6593cf" BorderStyle="Solid" BorderWidth="1px">
                    <telerik:RadPageView ID="RadPageView1" runat="server">
                        <div class="qsfexHeader">
                            Favourite Folders</div>
                        <telerik:RadTreeView ID="RadTreeView1" runat="server" EnableDragAndDrop="true" OnClientNodeDragStart="BeforeDragHandler"
                            OnClientNodeDropping="BeforeDropHandler" Skin="Outlook" MultipleSelect="True" OnNodeDrop="TreeDrop"
                            Height="213px" OnLoad="OnTreeLoad">
                        </telerik:RadTreeView>
                    </telerik:RadPageView>
                    <telerik:RadPageView ID="RadPageView2" runat="server">
                        <div class="qsfexHeader">
                            All Mail Folders</div>
                        <telerik:RadTreeView ID="RadTreeView2" runat="server" EnableDragAndDrop="true" OnClientNodeDragStart="BeforeDragHandler"
                            OnClientNodeDropping="BeforeDropHandler" MultipleSelect="True" OnNodeDrop="TreeDrop"
                            Height="213px" OnLoad="OnTreeLoad">
                        </telerik:RadTreeView>
                    </telerik:RadPageView>
                    <telerik:RadPageView ID="RadPageView3" runat="server">
                        <div class="qsfexHeader">
                            Calendar</div>
                        <telerik:RadCalendar ID="RadCalendar2" runat="server" DayNameFormat="FirstLetter" Skin="Outlook" Width="196px"
                            Style="margin: 5px auto;">
                        </telerik:RadCalendar>
                    </telerik:RadPageView>
                    <telerik:RadPageView ID="RadPageView4" runat="server">
                        <div class="qsfexHeader">
                            Others</div>
                        <ul class="qsfexOtherItems">
                            <li><span class="qsfexLinkImage">
    <asp:Image ID="Image1" runat="server" ImageUrl="Img/contactsItems.gif" AlternateText="My Contacts" /></span><asp:HyperLink
    ID="HyperLink1" runat="server" NavigateUrl="#">My Contacts</asp:HyperLink></li>

                            <li><span class="qsfexLinkImage">
    <asp:Image ID="Image2" runat="server" ImageUrl="Img/tasksItems.gif" AlternateText="Tasks" /></span><asp:HyperLink
    ID="HyperLink2" runat="server" NavigateUrl="#">Tasks</asp:HyperLink></li>

                            <li><span class="qsfexLinkImage">
    <asp:Image ID="Image3" runat="server" ImageUrl="Img/notesItems.gif" AlternateText="Notes" /></span><asp:HyperLink
    ID="HyperLink3" runat="server" NavigateUrl="#">Notes</asp:HyperLink></li>

                        </ul>
                    </telerik:RadPageView>
                </telerik:RadMultiPage>
                <div id="qsfexSeparator">
                </div>
                <telerik:RadPanelBar ID="RadPanelbar1" runat="server" ExpandMode="SingleExpandedItem"
                    OnClientItemClicking="OnClientItemClicking" OnClientMouseOver="panelMouseOver"
                    Width="200px" Skin="Outlook">
                    <Items>
                        <telerik:RadPanelItem Text="Favourite Folders" Expanded="True" ImageUrl="Img/mail.gif" />
                        <telerik:RadPanelItem Text="All Mail Folders" ImageUrl="Img/mail.gif" />
                        <telerik:RadPanelItem Text="Calendar" ImageUrl="Img/calendar.gif" />
                        <telerik:RadPanelItem Text="Others" ImageUrl="Img/contacts.gif" />
                    </Items>
                </telerik:RadPanelBar>
            </div>
            <qsf:Footer ID="Footer1" runat="server"></qsf:Footer>
        </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