shared folder path formed dynamically

2 posts, 0 answers
  1. MBEN
    MBEN avatar
    159 posts
    Member since:
    Nov 2011

    Posted 12 Jul 2012 Link to this post


    I was using the file explorer to load files from a shared path as shown in the article
    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?
  2. Dobromir
    Dobromir avatar
    1633 posts

    Posted 17 Jul 2012 Link to this post


    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,
    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.
  3. DevCraft R3 2016 release webinar banner
Back to Top