Running three file explorers in the three separate tabs Each on has it's on initial directory set. I have view, upload and delete folders set. The problem I am experiencing is that when I delete a file from a sub folder when the control refreshes the display shows the parent directory again instead of the subdirectory being selected. I went through the help section but couldn't see anything on keeping subdirectories open on delete. I figure it will be in the Item_command section for "DeleteFile" but I can't see where to hook the changes.
Here's my code for one of the exploreres:
Page Code:
Code Behind:
Here's my code for one of the exploreres:
Page Code:
<
telerik:RadFileExplorer
runat
=
"server"
ID
=
"ImagesExplorer"
Width
=
"99%"
Height
=
"500px"
>
</
telerik:RadFileExplorer
>
private
string
baseImagePath
{
get
{
return
String.Format(
"/userfiles/images/{0}/"
, ThisSiteName);
}
}
protected
override
void
OnInit(EventArgs e)
{
base
.OnInit(e);
string
[] imagePath = { baseImagePath };
ImagesExplorer.EnableOpenFile =
true
;
ImagesExplorer.ExplorerMode = Telerik.Web.UI.FileExplorer.FileExplorerMode.Default;
ImagesExplorer.Configuration.ViewPaths = imagePath;
ImagesExplorer.Configuration.DeletePaths = imagePath;
ImagesExplorer.Configuration.UploadPaths = imagePath;
ImagesExplorer.OnClientFileOpen =
"OnClientFileOpen"
;
ImagesExplorer.Configuration.MaxUploadFileSize = 500000000;
}
protected
override
void
OnLoad(EventArgs e)
{
base
.OnLoad(e);
if
(!IsPostBack)
{
ImagesExplorer.InitialPath = baseImagePath;
}
}