This is a migrated thread and some comments may be shown as answers.
Change folder names via code
1 Answer 16 Views
This is a migrated thread and some comments may be shown as answers.
Ron
Top achievements
Rank 1
Ron asked on 17 Feb 2012, 02:34 PM
I have a problem where I need to change the folder names to a useful name instead of a number.
Our folder tree consists of just a folder within the project named "/files".

But the folder names inside are just numbers related to userID, emailID, and so forth. (ex. /files/530-001)
Is there a way to change/mask the name of a folder to something useful like a real name?
Just need a little help in the right direction.
If I can change just one 530-001 - I can figure out rest.

Thank you

1 Answer, 1 is accepted

Sort by
0
Dobromir
Telerik team
answered on 21 Feb 2012, 01:02 PM
Hi Ronald,

In order to change the name of the files and / or folders displayed in the file explorer, you need to subclass the RadFileExplorer's content provider and override the ResolveDirectory() / ResolveRootDirectoryAsTree() and change the Name property of the FileItem / DirectoryItem that is returned by the method.

Please review the following help article for more detailed information regarding the RadFileExplorer's content provider:
Using custom FileBrowserContentProvider

Greetings,
Dobromir
the Telerik team
Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>
Asked by
Ron
Top achievements
Rank 1
Answers by
Dobromir
Telerik team
Share this question
or