<%@ Page Language="C#" AutoEventWireup="true" CodeFile="CustomFileSystemProvider.aspx.cs"
	Inherits="FileExplorerPage" %>

<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
<!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">
	<title></title>

	<script type="text/javascript">

	</script>

</head>
<body>
	<form id="Form1" runat="server">
	<asp:ScriptManager ID="ScriptManager1" runat="server">
	</asp:ScriptManager>
	<div>
		<telerik:RadFileExplorer runat="server" ID="RadFileExplorer1" Width="500px" Height="300px">
			<Configuration ViewPaths="~/ROOT" DeletePaths="~/ROOT" UploadPaths="~/ROOT" />
		</telerik:RadFileExplorer>
	</div>
	<telerik:RadScriptBlock ID="RadScriptBlock1" runat="server">

		<script type="text/javascript">

			// Root directory
			var rootPath = "/FileExplorer_/ROOT";

			function refreshExplorer()
			{
				Sys.Application.remove_load(refreshExplorer);
				var oExplorer = $find("<%= RadFileExplorer1.ClientID %>");
				oExplorer.set_currentDirectory(rootPath);
				oExplorer.refresh();
			}
		
		</script>

	</telerik:RadScriptBlock>
	</form>
</body>
</html>
