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 Q1 2012 released 04/11/2012
select

File Browser

  • Ajax
  • App_Browsers
  • App_Code
  • App_Data
  • App_GlobalResources
  • App_Themes
  • AsyncUpload
  • bin
  • BinaryImage
  • Button
  • Calendar
  • Captcha
  • Chart
  • ColorPicker
  • ComboBox
  • Common
  • Controls
  • DataPager
  • Dock
  • Editor
  • FileExplorer
  • Filter
  • FormDecorator
  • Grid
  • ImageEditor
  • Img
  • Input
  • ListBox
  • ListView
  • Menu
  • Notification
  • OrgChart
  • PanelBar
  • Rating
  • RibbonBar
  • Rotator
  • Scheduler
  • SiteMap
  • Slider
  • SocialShare
  • Spell
  • Splitter
  • TabStrip
  • TagCloud
  • ToolBar
  • Tooltip
  • TreeList
  • TreeView
  • Upload
  • Window
  • XmlHttpPanel
NameSize
icon Examples  
icon Img  
icon Default.aspx 79




  • The following example demonstrates how RadSplitter, RadTreeView, RadGrid and RadMenu can be integrated with the RadAjax framework. The example features the following components:

    • RadSplitter - allows resizing of the content panes.
    • RadTreeView - displays the folder structure, in the tree located to the left. Clicking on a node loads all the contents of a given folder.
    • RadGrid - displays the selected folder contents
    • RadMenu - located at the top, above the RadTreeView control, the menu is used to display custom commands
    • RadAjax Manager - manages the Ajax requests, used to refresh the grid contents.

Source Code

C# VB.NET
Show code in new window Demo isolation steps
  • <%@ Page Language="c#" AutoEventWireup="true" CodeFile="DefaultCS.aspx.cs" Inherits="Telerik.Web.Examples.Controls.Integration.FileBrowser.DefaultCS" %>

    <%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
    <%@ Register TagPrefix="qsf" TagName="Footer" Src="~/Common/Footer.ascx" %>
    <%@ Register TagPrefix="qsf" TagName="HeadTag" Src="~/Common/HeadTag.ascx" %>
    <%@ Register TagPrefix="qsf" TagName="Header" Src="~/Common/Header.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">
        <style type="text/css">
            body
            {
                margin: 0px;
            }
            .UpdateImage
            {
                margin-top: 40px;
                padding-left: 2px;
            }
            .lpanel
            {
                border: 1px solid red;
                position: absolute;
                top: 600;
                left: 10;
            }
            .GridDataDiv_Vista
            {
                height: 474px !important;
            }
        </style>
        <link rel="stylesheet" type="text/css" href="Styles/AjaxFileExplorer.css" />
        <qsf:HeadTag runat="server" ID="Headtag1"></qsf:HeadTag>
        <script type="text/javascript" src="Script.js"></script>
    </head>
    <body class="BODY">
        <form id="form1" runat="server">
            <qsf:Header runat="server" ID="Header1" NavigationLanguage="C#"></qsf:Header>
            <telerik:RadScriptManager ID="RadScriptManager1" runat="server">
                <Services>
                    <asp:ServiceReference Path="Directories.asmx" />
                </Services>
            </telerik:RadScriptManager>
            <!-- content start -->
            <div class="wrapper">
                <div class="wrapper2">
                    <h3 class="browser">
                        File Browser</h3>
                    <div class="wrapper3">
                        <telerik:RadMenu ID="RadMenu1" runat="server" Skin="Vista" Width="708px" BorderWidth="0">
                            <ExpandAnimation Duration="100" />
                            <CollapseAnimation Duration="100" />
                            <Items>
                                <telerik:RadMenuItem Text="File" runat="server">
                                    <Items>
                                        <telerik:RadMenuItem Text="New Node" runat="server" ImageUrl="Img/new.gif" Enabled="false" />
                                        <telerik:RadMenuItem Text="Delete Node" runat="server" ImageUrl="Img/delete.gif"
                                            Enabled="false" />
                                        <telerik:RadMenuItem Text="Rename Node" runat="server" ImageUrl="Img/rename.gif"
                                            Enabled="false" />
                                    </Items>
                                </telerik:RadMenuItem>
                                <telerik:RadMenuItem ID="RadMenuItem4" Text="Edit" runat="server">
                                    <Items>
                                        <telerik:RadMenuItem Text="Copy Node" runat="server" ImageUrl="Img/copy.gif" Enabled="false" />
                                        <telerik:RadMenuItem Text="Paste Node" runat="server" ImageUrl="Img/paste.gif" Enabled="false" />
                                    </Items>
                                </telerik:RadMenuItem>
                            </Items>
                        </telerik:RadMenu>
                        <div class="innerWrapper">
                            <telerik:RadSplitter ID="RadSplitterBrowser" runat="server" Height="500px" Width="708px"
                                BorderSize="0" BorderStyle="None" Skin="Vista">
                                <telerik:RadPane ID="RadPaneTreeView" runat="server" Height="500px" Width="222px">
                                    <div class="leftPaneHeader">
                                    </div>
                                    <telerik:RadTreeView ID="RadTreeView1" OnClientNodeClicked="clientNodeClicked" runat="server"
                                        Skin="Vista" Width="100%" Height="476px" AccessKey="T">
                                        <WebServiceSettings Path="Directories.asmx" Method="GetDirectories" />
                                        <DataBindings>
                                            <telerik:RadTreeNodeBinding ImageUrlField="ImageUrl" TextField="Text" ValueField="Value" />
                                        </DataBindings>
                                    </telerik:RadTreeView>
                                </telerik:RadPane>
                                <telerik:RadSplitBar ID="RadSplitBar1" runat="server" />
                                <telerik:RadPane ID="RadPaneGrid" runat="server" Width="480px">
                                    <telerik:RadGrid ID="RadGrid1" runat="server" AutoGenerateColumns="False" GridLines="None"
                                        Width="100%" Height="498px" Skin="Vista">
                                        <MasterTableView Width="100%">
                                            <Columns>
                                                <telerik:GridTemplateColumn HeaderText="Name" SortExpression="Name" UniqueName="Name">
                                                    <ItemTemplate>
                                                        <asp:Image ID="icon" runat="server" />
                                                        <asp:Label ID="itemLabel" runat="server" Text='<%# Eval("Name") %>'></asp:Label>
                                                    </ItemTemplate>
                                                </telerik:GridTemplateColumn>
                                                <telerik:GridTemplateColumn HeaderText="Size" SortExpression="Size" UniqueName="Size">
                                                </telerik:GridTemplateColumn>
                                            </Columns>
                                        </MasterTableView>
                                        <ClientSettings ReorderColumnsOnClient="True">
                                            <Selecting AllowRowSelect="True" />
                                            <Resizing AllowColumnResize="True" />
                                            <Scrolling AllowScroll="True" UseStaticHeaders="True" ScrollHeight="99.9%" />
                                            <ClientEvents OnRowDataBound="rowDataBound" />
                                        </ClientSettings>
                                        <HeaderStyle BorderColor="DarkGray" BorderStyle="Solid" BorderWidth="1px" />
                                    </telerik:RadGrid>
                                </telerik:RadPane>
                            </telerik:RadSplitter>
                        </div>
                    </div>
                    <div class="footer">
                        <telerik:RadAjaxLoadingPanel ID="AjaxLoadingPanel1" runat="server" Height="75px"
                            Width="275px" Transparency="60" BackColor="Gray" ForeColor="White">
    <asp:Image ID="Image1" runat="server" AlternateText="Loading..." ImageUrl="~/Controls/Examples/Integration/FileBrowser/Img/LoadingProgressBar.gif"
    CssClass="UpdateImage" />

                            <span style="position:relative; top: -6px;">Updating...</span>
                        </telerik:RadAjaxLoadingPanel>
                    </div>
                </div>
            </div>
            <br />
            <br />
            <br />
            <!-- content end -->
            <qsf:Footer runat="server" ID="Footer1"></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-2012 © Telerik. All right reserved
Telerik Inc, 201 Jones Rd, Waltham, MA 02451