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

rootdirectory not expanded

4 Answers 65 Views
FileExplorer
This is a migrated thread and some comments may be shown as answers.
Marco
Top achievements
Rank 1
Marco asked on 29 Oct 2009, 09:46 AM
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

4 Answers, 1 is accepted

Sort by
0
Fiko
Telerik team
answered on 03 Nov 2009, 01:47 PM
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.
0
Marco
Top achievements
Rank 1
answered on 03 Nov 2009, 02:30 PM
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.
0
Accepted
Fiko
Telerik team
answered on 06 Nov 2009, 11:24 AM
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.
0
Marco
Top achievements
Rank 1
answered on 26 Nov 2009, 09:02 AM
thanx
Tags
FileExplorer
Asked by
Marco
Top achievements
Rank 1
Answers by
Fiko
Telerik team
Marco
Top achievements
Rank 1
Share this question
or