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

How to change message “DirectoryAlreadyExists”

3 Answers 79 Views
FileExplorer
This is a migrated thread and some comments may be shown as answers.
Amol
Top achievements
Rank 2
Amol asked on 28 Jul 2009, 02:10 PM
Hello ,

I want to customize messages like “DirectoryAlreadyExists”,
filesize limit messages, delete confirm messages , file exists messages.

Could you please tell me how to change that?

Thanks,
Amol



3 Answers, 1 is accepted

Sort by
0
Fiko
Telerik team
answered on 30 Jul 2009, 11:03 AM
Hello Amol,

The RadFileExplorer control has localization files (it uses the .resex files of the RadEditor's dialogs) and you could simply change the messages in these files. For example I have attached a demo in which I changed the delete confirmation message in the RadEditor.Dialogs.resx - English localization file. This file is used by default and you do not need to set it explicitly.

I hope this helps.

Best wishes,
Fiko
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.
0
Amol
Top achievements
Rank 2
answered on 03 Aug 2009, 06:06 AM
Hello Fiko,

Thanks for your response, It works for delete confirmation msg.

But I am not able to find Folder Exists key and “DirectoryAlreadyExists” msg in .resex files of the RadEditor's dialogs.

Can you please verify it and let me know.

Thanks,
Amol Wable


0
Fiko
Telerik team
answered on 05 Aug 2009, 10:25 AM
Hello Amol,

These messages are built in the default FileSystemContentProvider and they are not exposed in the Localization file. In this case I recommend you to change the strings in the provider directly. For your convenience I have attached a project with the configured new provider. In the project I used the default provider FileSystemContentProvider, and changed its class name to CustomFileSystemContentProvider. You could find the text that you need to change in the provider and replace it with the desired one.

I hope this helps.

Sincerely yours,
Fiko
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
Amol
Top achievements
Rank 2
Answers by
Fiko
Telerik team
Amol
Top achievements
Rank 2
Share this question
or