I want to use a simple FileSystem explorer.
If I set the InitialPath, ViewPaths, UploadPaths, DeletePaths in code (c#), like this
--------------------------------------------------------------------------------
string
path = "~/Fisiere/";
RadFileExplorer1.Configuration.ContentProviderTypeName =
typeof(FileSystemContentProvider).AssemblyQualifiedName;
RadFileExplorer1.InitialPath = path;
RadFileExplorer1.Configuration.ViewPaths =
new string[] { path };
RadFileExplorer1.Configuration.UploadPaths =
new string[] { path };
RadFileExplorer1.Configuration.DeletePaths =
new string[] { path };
RadFileExplorer1.EnableOpenFile =
true;
RadFileExplorer1.EnableCopy =
true;
RadFileExplorer1.DisplayUpFolderItem =
true;
RadFileExplorer1.AllowPaging =
true;
RadFileExplorer1.EnableCreateNewFolder =
true;
-----------------------------------------------------------------------------------------
it doesn't work (I can't upload, delete, create folder)
but if I set these properties like this:
-----------------------------------------------------------------
<telerik:RadFileExplorer ID="RadFileExplorer1" Runat="server">
<Configuration ViewPaths="~/Fisiere/" UploadPaths="~/Fisiere/"
DeletePaths="~/Fisiere/" /> </telerik:RadFileExplorer>
----------------------------------------------------
it works. I want to be able to set these properties in code (read from web.config)
Thank you.