rootdirectory not expanded

5 posts, 1 answers
  1. Marco
    Marco avatar
    22 posts
    Member since:
    Jan 2009

    Posted 29 Oct 2009 Link to this post

    When using a custom FileBrowserContentProvider I want to be able to show the paths I provide in the ViewPaths property of the FileManagerDialogConfiguration.
    Let's say I provide two paths, both using a different source and both containing a lot of directories.
    I'm able to display both paths, but on default they are already expanded, requering the user to scroll past the 1st path's 1st-level directories before he can see the 2nd path...

    How do I (probably in the ResolveRootDirectoryAsTree (I want to use a tree-like directory structure)) avoid the 1st-level to directories to load on default? I want them to be loaded only when clicked...

    thanks
  2. Fiko
    Admin
    Fiko avatar
    1406 posts

    Posted 03 Nov 2009 Link to this post

    Hi Marco,

    You could use this approach in order to achieve the desired result :
    protected override void OnLoadComplete(EventArgs e)
    {
        base.OnLoadComplete(e);
        if (!(IsPostBack))
        {
            RadFileExplorer1.TreeView.CollapseAllNodes();
        }
    }

    Please note that this code is used in the OnLoadCompleate event of the Page.

    I hope this helps.

    Kind regards,
    Fiko
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Marco
    Marco avatar
    22 posts
    Member since:
    Jan 2009

    Posted 03 Nov 2009 Link to this post

    I'm using a FileBrowserContentProvider (of which I inherite). The object on the page is a telerik editor (sort of). In the telerik editor I do not know where to find a RadFileExplorer.
  5. Answer
    Fiko
    Admin
    Fiko avatar
    1406 posts

    Posted 06 Nov 2009 Link to this post

    Hello Marco,

    I believe that these links will be of help:

    Greetings,
    Fiko
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
  6. Marco
    Marco avatar
    22 posts
    Member since:
    Jan 2009

    Posted 26 Nov 2009 Link to this post

    thanx
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017