11 Answers, 1 is accepted
0
Hello Samee,
The delete confirmation dialog box's content cannot be modified, but you can change the text that is shown by using the associated localization files (.resx) . Three localization files come with the installation of the control - RadEditor.Dialogs.resx (default one - English), RadEditor.Dialogs.fr-FR.resx and RadEditor.Dialogs.de-DE.resx. The RadFileExplorer and RadEditor controls share the same localization files. In your case you need to change the value of the Common_ConfirmDelete key in the resource files to the desired string.
For the time being, the text that is shown inside the create new folder dialog's textbox ("NewFolder") cannot be changed, but we plan to add a new property that will allow developers to set this text in the RadFileExplorer's configuration. The create new folder dialog's title, however, can be changed by modifying the same .resx file(s) as described earlier and changing the value of the Common_CreateNewFolder key.
I hope this helps.
Kind regards,
Fiko
the Telerik team
Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
The delete confirmation dialog box's content cannot be modified, but you can change the text that is shown by using the associated localization files (.resx) . Three localization files come with the installation of the control - RadEditor.Dialogs.resx (default one - English), RadEditor.Dialogs.fr-FR.resx and RadEditor.Dialogs.de-DE.resx. The RadFileExplorer and RadEditor controls share the same localization files. In your case you need to change the value of the Common_ConfirmDelete key in the resource files to the desired string.
For the time being, the text that is shown inside the create new folder dialog's textbox ("NewFolder") cannot be changed, but we plan to add a new property that will allow developers to set this text in the RadFileExplorer's configuration. The create new folder dialog's title, however, can be changed by modifying the same .resx file(s) as described earlier and changing the value of the Common_CreateNewFolder key.
I hope this helps.
Kind regards,
Fiko
the Telerik team
Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
Samee Mir
Top achievements
Rank 1
answered on 25 Jan 2010, 01:39 PM
hello Fiko,
thnx for the reply :)
i want to add a new folder without giving the user option to Tell the name of new folder i just want a folder to be added with the name new Folder. is it possible:?
best regards,
Samee Javaid
thnx for the reply :)
i want to add a new folder without giving the user option to Tell the name of new folder i just want a folder to be added with the name new Folder. is it possible:?
best regards,
Samee Javaid
0
Hello Samee,
In this case, you can use the RadFileExplorer's createNewDirectory method. For example:
I hope this helps.
All the best,
Fiko
the Telerik team
Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
In this case, you can use the RadFileExplorer's createNewDirectory method. For example:
<telerik:RadScriptBlock ID=
"RadScriptBlock1"
runat=
"server"
>
<script type=
"text/javascript"
>
function
addNewFolder()
{
var
oExplorer = $find(
"<%= RadFileExplorer1.ClientID %>"
);
// oExplorer.createNewDirectory(path, newName);
oExplorer.createNewDirectory(
"/FileExplorer_/Northwind/Flowers"
,
"Programmatically created folder"
);
}
</script>
</telerik:RadScriptBlock>
I hope this helps.
All the best,
Fiko
the Telerik team
Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
Bob van der Zinch
Top achievements
Rank 2
answered on 18 Apr 2010, 04:45 PM
Is there an item in PITS about customizing texts in FileExplorer? I wanna vote for it :)
From what I understood, it's not possible now to provide multiply custom texts for FileExplorer, only the one I set in resources?
PS. Found in
http://www.telerik.com/products/aspnet-ajax/whats-new/release-history/q2-2009-sp1-version-2009-2-826.aspx
File explorer localization can now be updated (Localization.SetString(key,value))
And that worked in OnInit:
Looks like the feature is already there :)
From what I understood, it's not possible now to provide multiply custom texts for FileExplorer, only the one I set in resources?
PS. Found in
http://www.telerik.com/products/aspnet-ajax/whats-new/release-history/q2-2009-sp1-version-2009-2-826.aspx
File explorer localization can now be updated (Localization.SetString(key,value))
And that worked in OnInit:
explorer.Localization.SetString ("Common_ConfirmDelete", "Are you sure?"); |
Looks like the feature is already there :)
0
sunghyun
Top achievements
Rank 1
answered on 26 Jan 2011, 09:02 AM
i got it..
thank you
thank you
0
Alexis
Top achievements
Rank 1
answered on 20 Oct 2014, 04:05 PM
[quote]Fiko said:Hello Samee,
For the time being, the text that is shown inside the create new folder dialog's textbox ("NewFolder") cannot be changed, but we plan to add a new property that will allow developers to set this text in the RadFileExplorer's configuration.
Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
[/quote]
Now can be changed? thanks.
For the time being, the text that is shown inside the create new folder dialog's textbox ("NewFolder") cannot be changed, but we plan to add a new property that will allow developers to set this text in the RadFileExplorer's configuration.
Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Now can be changed? thanks.
0
Hello Alexis,
You can change the texts in the NewFolder dialog using the RadFileExplorer's localization mechanism. Please review the following article for more information:
http://www.telerik.com/help/aspnet-ajax/fileexplorer-localization.html
Regards,
Dobromir
Telerik
You can change the texts in the NewFolder dialog using the RadFileExplorer's localization mechanism. Please review the following article for more information:
http://www.telerik.com/help/aspnet-ajax/fileexplorer-localization.html
Regards,
Dobromir
Telerik
Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.
0
Alexis
Top achievements
Rank 1
answered on 23 Oct 2014, 12:26 PM
Hello, thanks for your answer.
I have changed the text:
<data name="Common_NewFolder" xml:space="preserve">
<value>Nueva carpeta </value>
</data>
in the RadEditor.Dialogs.resx, but it doesn´t have effect (see attach)
I have changed the text:
<data name="Common_NewFolder" xml:space="preserve">
<value>Nueva carpeta </value>
</data>
in the RadEditor.Dialogs.resx, but it doesn´t have effect (see attach)
0
Hi Alexis,
Please excuse me for the misunderstanding. The default value of the new folder's name is not subject to localization. In order to change this value you need to set the corresponding RadFileExplorer's client-side property, e.g.:
Regards,
Dobromir
Telerik
Please excuse me for the misunderstanding. The default value of the new folder's name is not subject to localization. In order to change this value you need to set the corresponding RadFileExplorer's client-side property, e.g.:
<telerik:RadFileExplorer runat=
"server"
ID=
"FileExplorer1"
OnClientLoad=
"OnExplorerLoad"
>
<Configuration ViewPaths=
"~/Files"
UploadPaths=
"~/Files"
DeletePaths=
"~/Files"
></Configuration>
</telerik:RadFileExplorer>
<script>
function
OnExplorerLoad(explorer) {
explorer.set_newFolderDefaultValue(
"CustomFolderName"
);
}
</script>
Regards,
Dobromir
Telerik
Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.
0
Alexis
Top achievements
Rank 1
answered on 16 Oct 2015, 02:02 PM
How can I change the localization of the alert when I insert an invalid character in a RadFileExplorer dialog when I am creating a new folder?
Regards,
Alexis.
0
Hi Samee,
Unfortunately the target error message is not localized and the only way to change it is to overwrite the FileExplrorer's private _alertWrongFileNameInput method and pass the desired message directly to the tooltip (the commented line is the original part of the code):
I hope this helps.
Regards,
Vessy
Telerik
Unfortunately the target error message is not localized and the only way to change it is to overwrite the FileExplrorer's private _alertWrongFileNameInput method and pass the desired message directly to the tooltip (the commented line is the original part of the code):
<script>
Telerik.Web.UI.RadFileExplorer.prototype._alertWrongFileNameInput =
function
(input)
{
var
tooltip =
this
.get_tooltipControl();
tooltip.set_targetControl(input);
//tooltip.set_text(this.fileNameInvalidText + ":<br />" + this._getInvalidCharsToString());
var
customMessage =
"Your custom message here"
;
tooltip.set_text(customMessage);
setTimeout(
function
() {
tooltip.show();
}, 100);
}
</script>
I hope this helps.
Regards,
Vessy
Telerik
Do you want to have your say when we set our development plans?
Do you want to know when a feature you care about is added or when a bug fixed?
Explore the
Telerik Feedback Portal
and vote to affect the priority of the items