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

TreeView driven InitialPath

1 Answer 54 Views
FileExplorer
This is a migrated thread and some comments may be shown as answers.
Erik Schindeldecker
Top achievements
Rank 1
Erik Schindeldecker asked on 22 Jul 2009, 01:04 PM
Good Morning,
I have a FileExplorer displaying documents associated with a selected piece of equipment. In Page Load, the InitialPath assignment displays the documents in the root folder. However, when a piece of equipment is selected via a TreeView, no documents are displayed in the FileExplorer. Below in the code dynamically defining the path used for InitialPath:

 

Dim path As String

 

 

If upsRadTreeView.SelectedValue = Nothing Then

 

path = Page.ResolveUrl(

"~/CustomerData/" & Profile.CustomerNumber.ToString)

 

 

Else

 

path = Page.ResolveUrl(

"~/CustomerData/" & Profile.CustomerNumber.ToString & "/UPSData/" & upsRadTreeView.SelectedNode.Value.ToString)

 

 

End If

 

 

Dim paths As String() = {path}

 

documentsRadFileExplorer.InitialPath = path

documentsRadFileExplorer.Configuration.UploadPaths = paths

documentsRadFileExplorer.Configuration.ViewPaths = paths

*.aspx code:

 

<

 

telerik:RadFileExplorer ID="documentsRadFileExplorer" runat="server" Height="200px" Width="480px" VisibleControls="Grid"

 

 

EnableCreateNewFolder="False" DisplayUpFolderItem="false" Skin="Black"></telerik:RadFileExplorer>

 

 

 

Please advise.

Thanks,
Erik

1 Answer, 1 is accepted

Sort by
0
Fiko
Telerik team
answered on 27 Jul 2009, 01:36 PM
Hello Erik,

Could you please make sure that the parts of the code bellow do assign a valid path to the path variable? The value of that variable should be a valid virtual path to a folder.

path = Page.ResolveUrl("~/CustomerData/" & Profile.CustomerNumber.ToString)  

and

path = Page.ResolveUrl("~/CustomerData/" & Profile.CustomerNumber.ToString & "/UPSData/" & upsRadTreeView.SelectedNode.Value.ToString)  

In case that the path is correct, please open a new support ticket and send us the project that reproduces the problem. We will debug it and do our best to provide a working solution.

Regards,
Fiko
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
FileExplorer
Asked by
Erik Schindeldecker
Top achievements
Rank 1
Answers by
Fiko
Telerik team
Share this question
or