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

shared folder path formed dynamically

1 Answer 76 Views
FileExplorer
This is a migrated thread and some comments may be shown as answers.
MBEN
Top achievements
Rank 2
Veteran
MBEN asked on 12 Jul 2012, 08:52 PM
Hi,

I was using the file explorer to load files from a shared path as shown in the article http://www.telerik.com/support/kb/aspnet-ajax/fileexplorer/physical-paths-and-different-content-types.aspx.
I have a couple of file explorer controls on my page. For one of them the shared path is formed dynamically. When I run the project I am not able to see files in that control. Is it because I don't have a mapping specified for that particular path. How can i resolve this?

1 Answer, 1 is accepted

Sort by
0
Dobromir
Telerik team
answered on 17 Jul 2012, 01:17 PM
Hello,

Yes, when using content provider from the above mentioned KB article the mapping between the physical and virtual path is a requirement for each root folder set to the RadFileExplorer's ViewPaths / UploadPaths / DeletePaths properties.

In order to assign dynamically created path to RadFileExplorer you need to dynamically create the mappings as well. You can achieve this by accessing the Page from the content provider and from the handler, e.g:
Page _page = (Page)this.Context.CurrentHandler;

Then you can modify the mappings according page a property or a control.

I hope this helps.

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
MBEN
Top achievements
Rank 2
Veteran
Answers by
Dobromir
Telerik team
Share this question
or