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
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.