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

Hiding file extensions of all files in RADFileExplorer

1 Answer 110 Views
FileExplorer
This is a migrated thread and some comments may be shown as answers.
G S S
Top achievements
Rank 1
G S S asked on 17 Apr 2009, 01:57 PM
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

1 Answer, 1 is accepted

Sort by
0
Lini
Telerik team
answered on 21 Apr 2009, 02:09 PM
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.
Tags
FileExplorer
Asked by
G S S
Top achievements
Rank 1
Answers by
Lini
Telerik team
Share this question
or