Hiding file extensions of all files in RADFileExplorer

2 posts, 0 answers
  1. G S S
    G S S avatar
    85 posts
    Member since:
    Mar 2008

    Posted 17 Apr 2009 Link to this post

    Hi,

    I was looking at the programming model for RADFileExplorer, and wad wondering, is there a way to hide the extension of a  file? I know in C# I can hide file extensions, but would this cause problems with opening a file in RADFileExplorer?

    Thanks
  2. Lini
    Admin
    Lini avatar
    2144 posts

    Posted 21 Apr 2009 Link to this post

    Hello,

    Currently the FileExplorer control uses the file extension to determine what icon to show beside the file name. If you hide the file extensions on the server, it will also cause all files to use the "default" icon. If you are fine with this behavior, then you can override the default FileSystemContentProvider and its ResolveRootDirectoryAsTree and ResolveDirectory methods. This will give you control over the files and folders displayed in the FileExplorer and you will be able to remove the file extensions from the file names.


    Best wishes,
    Lini
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top