File Explorer


Rate this demo

Thank you for your post!
Submit a support ticket
If you have an active license or trial, you have access to dedicated support from Telerik’s developers. Response time is 24h for active licenses and 72h for trials, Mon-Fri.
Post in the forums
If you don’t have access to support or would like to help other people by sharing your problem, reach out to our active community in the forums.

FileExplorer - File Selector Dialog

How to open the 'Explorer.aspx' file:

This demo contains 1 or more dialog pages. To view them, click on the dropdown button (image) next to the corresponding file type.

Open the dialog and double click on a file to select it.

File Selector Dialog

The example above shows how to create a simple File Selector Dialog. On Open button click a RadWindow containing a RadFileExplorer control is displayed. Once the user browses to a file and double clicks on it, the OnClientFileOpen event is fired and the selected file path is populated in the RadTextBox declared on the parent page.

Show code in new window Demo isolation steps
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="DefaultCS.aspx.cs" Inherits="Telerik.Web.Examples.FileExplorer.Dialogues.DefaultCS" %>

<%@ Register TagPrefix="qsf" Namespace="Telerik.QuickStart" %>
<%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "">
<html xmlns=''>
<head runat="server">
    <title>ASP.NET FileExplorer Demo - File Selector Dialog</title>
    <form id="form1" runat="server">
    <telerik:RadScriptManager runat="server" ID="RadScriptManager1" />
     <telerik:RadFormDecorator runat="server" ID="RadFormDecorator1" DecoratedControls="All">
     <qsf:InformationBox ID="InformationBox1" runat="server" Title="How to open the 'Explorer.aspx' file:">
          <span style="color: Red; font-size: 12px;">This demo contains 1 or more dialog pages.
               To view them, click on the dropdown button (image) next to the corresponding file
          <label for="fileName">Select a file:</label>
        <telerik:RadTextBox ID="fileName" runat="server" Width="350px">
          <asp:Button ID="selectFile" OnClientClick="OpenFileExplorerDialog(); return false;"
               Text="Open..." runat="server"></asp:Button>
          <br />
          <br />
          Open the dialog and double click on a file to select it.
     <script type="text/javascript">
          function OpenFileExplorerDialog() {
               var wnd = $find("<%= ExplorerWindow.ClientID %>");

          //This function is called from a code declared on the Explorer.aspx page
          function OnFileSelected(fileSelected) {
               var textbox = $find("<%= fileName.ClientID %>");
     <telerik:RadWindow runat="server" Width="550px" Height="560px" VisibleStatusbar="false"
          ShowContentDuringLoad="false" NavigateUrl="Explorer.aspx" ID="ExplorerWindow"
          Modal="true" Behaviors="Close,Move">