TreeView driven InitialPath

2 posts, 0 answers
  1. Erik Schindeldecker
    Erik Schindeldecker avatar
    6 posts
    Member since:
    Apr 2008

    Posted 22 Jul 2009 Link to this post

    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)





    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.


  2. Fiko
    Fiko avatar
    1406 posts

    Posted 27 Jul 2009 Link to this post

    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)  


    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.

    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.
Back to Top