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

How to use it to select a folder

1 Answer 191 Views
FileExplorer
This is a migrated thread and some comments may be shown as answers.
CSurieux
Top achievements
Rank 2
CSurieux asked on 31 Mar 2010, 03:31 PM
Hello,

Is there a way to display only folders, without files they contain and allows for selecting a folder ?

Thanks for help
CS

1 Answer, 1 is accepted

Sort by
0
Lini
Telerik team
answered on 02 Apr 2010, 12:46 PM
Hello,

You can use the RadFileExplorer client API to raise an event each time a folder is clicked(selected) or opened (loaded). See the following example for more details - http://demos.telerik.com/aspnet-ajax/fileexplorer/examples/clientsideevents/defaultcs.aspx

If you don't want to display the files, you need to customize the file explorer's content provider. The following example shows how to filter files and folders - http://demos.telerik.com/aspnet-ajax/fileexplorer/examples/filteranddownloadfiles/defaultcs.aspx. Your case is much simpler - you only need to override the ResolveDirectory method to filter files and simply return an empty collection where the files should be.

Kind regards,
Lini
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Tags
FileExplorer
Asked by
CSurieux
Top achievements
Rank 2
Answers by
Lini
Telerik team
Share this question
or