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

How to change ViewPaths (UploadPaths, DeletePaths) at runtime

2 Answers 88 Views
FileExplorer
This is a migrated thread and some comments may be shown as answers.
Khoa Ho
Top achievements
Rank 1
Khoa Ho asked on 06 Feb 2013, 06:28 AM
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 Answers, 1 is accepted

Sort by
0
Khoa Ho
Top achievements
Rank 1
answered on 18 Feb 2013, 02:28 AM
Hi forum,

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

Thank you,
Khoa
0
Dobromir
Telerik team
answered on 20 Feb 2013, 09:40 AM
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.
Tags
FileExplorer
Asked by
Khoa Ho
Top achievements
Rank 1
Answers by
Khoa Ho
Top achievements
Rank 1
Dobromir
Telerik team
Share this question
or