How to use it to select a folder

2 posts, 0 answers
  1. CSurieux
    CSurieux avatar
    465 posts
    Member since:
    Jan 2007

    Posted 31 Mar 2010 Link to this post

    Hello,

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

    Thanks for help
    CS
  2. Lini
    Admin
    Lini avatar
    2144 posts

    Posted 02 Apr 2010 Link to this post

    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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top