Hi,
I am running into slightly different issues. We are setting the FileExplorerPath, in code behind, in Page Load - every time per your sample code. We are uploading files which then display in the explorer control correctly and they are uploaded to the target directory as expected.
My issue is the FileExplorer's display after a
delete. I select a file, click delete, confirm and the file still appears in the RadFileExplorer, even though it is deleted from the file directory, as verified in Windows Explorer.
If I change the RadFileExplorer's target directory, and then change it again, and use the path to the folder where I deleted the file, the display is correct and the deleted file is not present.
So in summary, how do we refresh the FileExplorer after a delete? It does not seem to be doing this correctly when we set the paths dynamically in code behind.
FYI, here is what we are doing in page load every time (VB.net). targetDirectory is resolved using Page.ResolveURL - not shown here for brevity. Any insights greatly appreciated.
RadUpload1.TargetPhysicalFolder = Page.ResolveUrl(targetDirectory)
RadFileExplorer1.Configuration.ViewPaths = New String() {folderstring}
RadFileExplorer1.Configuration.DeletePaths = New String() {folderstring}
RadFileExplorer1.Configuration.UploadPaths = New String() {folderstring}
RadFileExplorer1.Configuration.MaxUploadFileSize = 300000000
Two final notes. First, if I click the refresh icon in the toolbar, I get an error - Invalid characters in folder name even though the folder is fine (example - ~/Uploads/PeteBatra_6697 )
Second, I tried the client side refresh method without success. I had correctly wired the
OnClientDelete to my javascript function and called refresh. This triggers the refresh animation - spinning circle - endlessly. The animation never goes away/completes.