This is a migrated thread and some comments may be shown as answers.

Document Manager not refreshing after upload

2 Answers 75 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Lam
Top achievements
Rank 1
Lam asked on 23 Mar 2009, 02:39 PM

Hi,

I've been trying to programmatically change the upload path for the editor based on a project_ID field which I'm pulling from the querystring.  For some reason, when I try to do this and try to use the Document Manager in the RadEditor, after an upload is completed, the document manager doesnt seem to refresh correctly and all I see is the folder path but no contents.  I have to literally double click on the up arrow to go up one directory and then back into the original directory to see the refreshed file contents.

Below is my the vb.net code on the code behind for the page that holds the radEditor:

 

Dim

 

uploadDocuments As String() = New String() {"~\uploads\" & project_ID & "\docs"}

 

RadProjectDescription.DocumentManager.UploadPaths = uploadDocuments

RadProjectDescription.DocumentManager.ViewPaths = uploadDocuments

RadProjectDescription.DocumentManager.DeletePaths = uploadDocuments

uploadDocuments =

New String() {"~\uploads\" & project_ID & "\media"}

 

RadProjectDescription.MediaManager.UploadPaths = uploadDocuments

RadProjectDescription.MediaManager.ViewPaths = uploadDocuments

RadProjectDescription.MediaManager.DeletePaths = uploadDocuments

It seems to refresh fine when I use a static path for the uploads.  It must be something I'm doing wrong.  Any help would be appreciated.

2 Answers, 1 is accepted

Sort by
0
Rumen
Telerik team
answered on 26 Mar 2009, 02:11 PM
Hello Lam,

Could you please replace the backward slash \ symbols in the paths with forward slash / e.g,

Before:
Dim uploadDocuments As String() = New String() {"~\uploads\" & project_ID & "\docs"}
...
uploadDocuments = New String() {"~\uploads\" & project_ID & "\media"}

After:
Dim uploadDocuments As String() = New String() {"~/uploads/" & project_ID & "/docs"}
...
uploadDocuments = New String() {"~/uploads/" & project_ID & "/media"}

Best regards,
Rumen
the Telerik team

Check out Telerik Trainer , the state of the art learning tool for Telerik products.
0
Lam
Top achievements
Rank 1
answered on 26 Mar 2009, 06:16 PM
Awesome.  That did the trick.  You guys rock!

Lam
Tags
Editor
Asked by
Lam
Top achievements
Rank 1
Answers by
Rumen
Telerik team
Lam
Top achievements
Rank 1
Share this question
or