InitialPath(s)

3 posts, 0 answers
  1. Mattias
    Mattias avatar
    263 posts
    Member since:
    Aug 2012

    Posted 09 Jul 2009 Link to this post

    Hi,
    I want to use the fileexplorer to list directories and files.
    But I need to have 2 initial paths (because of user role management), do I need to build a custom provider for that or is it possible to add 2 different root paths?
    I have checked the custom file content provider demo:
    http://demos.telerik.com/aspnet-ajax/fileexplorer/examples/dbfilebrowsercontentprovider/defaultcs.aspx
    but it feels complicated to build!

    It would be great if there were a way to add multiple paths to the explorer like:
    RadFileExplorer1.InitialPaths.Add("~/Folder1"); 
    RadFileExplorer1.InitialPaths.Add("~/Folder2"); 
     

    Regards,
    Mattias
  2. Mattias
    Mattias avatar
    263 posts
    Member since:
    Aug 2012

    Posted 09 Jul 2009 Link to this post

    Hmm, it seems that I didn't understand how the explorer works! :)
    I could just add the paths to RadFileExplorer1.Configuration.ViewPaths and it's done!

    /Mattias
  3. Mattias
    Mattias avatar
    263 posts
    Member since:
    Aug 2012

    Posted 09 Jul 2009 Link to this post

    It would be a nice feature if I could mark my own post as "answer" in this forum!

    /Mattias
Back to Top