How to change ViewPaths (UploadPaths, DeletePaths) at runtime

3 posts, 0 answers
  1. Khoa Ho
    Khoa Ho avatar
    9 posts
    Member since:
    Feb 2009

    Posted 06 Feb 2013 Link to this post

    Hi,

    I want to update the ViewPaths depending on login usernames. So each username will have different ViewPaths location. I tried the following code but it does not not work, the ViewPaths does not change. Please help me.

    private void ChangeServerPath(string folderPath)
    {
        string[] path = new[] { folderPath };
        fileExplorer.Configuration.ViewPaths = path;
        fileExplorer.Configuration.UploadPaths = path;
        fileExplorer.Configuration.DeletePaths = path;
        fileExplorer.TreeView.DataBind();
        fileExplorer.DataBind();
    }

    Thank you,
    Khoa
  2. Khoa Ho
    Khoa Ho avatar
    9 posts
    Member since:
    Feb 2009

    Posted 17 Feb 2013 Link to this post

    Hi forum,

    I still don't know why changing ViewPaths at runtime does not update the file explorer tree view?

    Thank you,
    Khoa
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Dobromir
    Admin
    Dobromir avatar
    1633 posts

    Posted 20 Feb 2013 Link to this post

    Hi,

    Please take a look at the following forum thread:
    http://www.telerik.com/community/forums/aspnet-ajax/file-explorer/dynamically-set-path.aspx#1544298

    Kind regards,
    Dobromir
    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Back to Top