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