RadFileExplorer Custom Messgaes

12 posts, 0 answers
  1. Samee Mir
    Samee Mir avatar
    26 posts
    Member since:
    Jan 2010

    Posted 13 Jan 2010 Link to this post

    hello
    Can You please tell me how can I show custom messgae and a check box on deleting a folder..
    n also please tell me that how can i show custom message on Adding a new folder
    regards
    Samee Mir
  2. Fiko
    Admin
    Fiko avatar
    1406 posts

    Posted 18 Jan 2010 Link to this post

    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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Samee Mir
    Samee Mir avatar
    26 posts
    Member since:
    Jan 2010

    Posted 25 Jan 2010 Link to this post

    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
  5. Fiko
    Admin
    Fiko avatar
    1406 posts

    Posted 28 Jan 2010 Link to this post

    Hello Samee,

    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.
  6. Bob van der Zinch
    Bob van der Zinch avatar
    10 posts
    Member since:
    Feb 2010

    Posted 18 Apr 2010 Link to this post

    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:
    explorer.Localization.SetString ("Common_ConfirmDelete""Are you sure?"); 

    Looks like the feature is already there :)
  7. sunghyun
    sunghyun avatar
    1 posts
    Member since:
    Dec 2010

    Posted 26 Jan 2011 Link to this post

    i got it..
    thank you
  8. Alexis
    Alexis avatar
    8 posts
    Member since:
    Jun 2014

    Posted 20 Oct 2014 in reply to Fiko Link to this post

    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.


    Now can be changed? thanks.
  9. Dobromir
    Admin
    Dobromir avatar
    1633 posts

    Posted 23 Oct 2014 Link to this post

    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
     

    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.

     
  10. Alexis
    Alexis avatar
    8 posts
    Member since:
    Jun 2014

    Posted 23 Oct 2014 in reply to Dobromir Link to this post

    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)








  11. Dobromir
    Admin
    Dobromir avatar
    1633 posts

    Posted 27 Oct 2014 Link to this post

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

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

     
  12. Alexis
    Alexis avatar
    8 posts
    Member since:
    Jun 2014

    Posted 16 Oct 2015 Link to this post

    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.

  13. Vessy
    Admin
    Vessy avatar
    1385 posts

    Posted 19 Oct 2015 Link to this post

    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):
    <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
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017