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

How to Change Upload File Foder?

3 Answers 75 Views
FileExplorer
This is a migrated thread and some comments may be shown as answers.
Oliver
Top achievements
Rank 1
Oliver asked on 01 Jun 2010, 12:33 PM
hello
i use this code in load my page:

        If Not IsPostBack Then
            Dim strPath = "~/Attach"
            RadFileExplorer1.Configuration.SearchPatterns = New String() {"*.*"}
            RadFileExplorer1.Configuration.ViewPaths = New String() {strPath}
            RadFileExplorer1.Configuration.UploadPaths = New String() {strPath}
            RadFileExplorer1.Configuration.DeletePaths = New String() {strPath}
        End If

but, i will change this Folder "~/Attach" to "~/Attach2" in a Button .
same :

    Protected Sub Button1_Click(ByVal sender As Object, ByVal e As EventArgs) Handles Button1.Click
        Dim strPath = "~/Attach2"
        RadFileExplorer1.Configuration.SearchPatterns = New String() {"*.*"}
        RadFileExplorer1.Configuration.ViewPaths = New String() {strPath}
        RadFileExplorer1.Configuration.UploadPaths = New String() {strPath}
        RadFileExplorer1.Configuration.DeletePaths = New String() {strPath}
    End Sub

but, i can not changing default folder!
please help me.

3 Answers, 1 is accepted

Sort by
0
Oliver
Top achievements
Rank 1
answered on 01 Jun 2010, 04:06 PM
hi to all and admin
my error  is a Bug in telerik?
please answer me.
thank u.
0
Oliver
Top achievements
Rank 1
answered on 01 Jun 2010, 06:51 PM
Please Help me for this problem.
0
Fiko
Telerik team
answered on 04 Jun 2010, 08:51 AM
Hello Ebrahim,

Page_Load is the latest event, where you can set the paths properties of the RadFileExplorer control. The OnClick event of a Button control is fired after the Page_Load event, however. This is why, I recommend you to use the approach shown in the attached demo. Could you please check it and let me know whether it fits your requirements?

I hope this helps.

All the best,
Fiko
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Tags
FileExplorer
Asked by
Oliver
Top achievements
Rank 1
Answers by
Oliver
Top achievements
Rank 1
Fiko
Telerik team
Share this question
or