Coustomizing Editor Dialog Message

7 posts, 0 answers
  1. Saurabh
    Saurabh avatar
    12 posts
    Member since:
    Mar 2012

    Posted 03 Jun 2013 Link to this post

    When I am pasting data with word formatting i get this message , I need to customize this message and change the text on buttons.



    I have visited http://demos.telerik.com/aspnet-ajax/editor/examples/externaldialogspath/defaultcs.aspx , I could not make out how can i modify this particular message.

    Can some one address this for me.

    Thanks.
  2. Vessy
    Admin
    Vessy avatar
    1381 posts

    Posted 06 Jun 2013 Link to this post

    Hello Saurabh,

    All of the desired modifications could be done in the localization files of the Editor. The content of the error message could be found inside "RadEditor.Main.resx" and the text of the buttons - inside "RadEditor.Dialogs.resx". More information regarding the localization and how to modify it is available here:
    Using Global Resource Files

    Another option is to make the changes in the code behind, e.g:
    protected void Page_Load(object sender, EventArgs e)
    {
        RadEditor1.Localization.Main.AskWordCleaning = "Your custom message here.";
    }

    I hope this helps.

    Regards,
    Veselina Raykova
    Telerik
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to the blog feed now.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Saurabh
    Saurabh avatar
    12 posts
    Member since:
    Mar 2012

    Posted 06 Jun 2013 Link to this post

    Thanks it was of great help.
  5. William
    William avatar
    1 posts
    Member since:
    Dec 2013

    Posted 10 Jan 2014 Link to this post

    Is there a way to customize the buttons on this dialog only? I want to change the text to "Yes" and "No". However, I don't want to change the text of all OK/Cancel buttons throughout the editor.I see in the RadEditor.Dialogs.Resx file there are common_cancel and common_ok, from my understanding, changing the text here changes the text for all OK/Cancel buttons.
  6. Marin Bratanov
    Admin
    Marin Bratanov avatar
    3595 posts

    Posted 14 Jan 2014 Link to this post

    Hello William,

    You can copy the dialogs to your application and point the editor to them, so that you can edit only a single dialog with the wanted text. Note that this will prevent it from being otherwise localized: http://www.telerik.com/help/aspnet-ajax/editor-externaldialogspath-property.html.


    Regards,
    Marin Bratanov
    Telerik
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to the blog feed now.
  7. Alexis
    Alexis avatar
    8 posts
    Member since:
    Jun 2014

    Posted 15 Oct 2014 in reply to Marin Bratanov Link to this post

    I have a similar situation. I want to change the localization of the delete message, in particular, the localization of the button OK. 

    I changed the RadEditor.Dialogs.es-UY.resx file:

    <data name="Common_OK" xml:space="preserve">
        <value>Aceptar</value>
      </data>

    But it doesn't work. I change the value of, for example, Common_Cancel, and it works.

    I am missing something?

    Thank you.
  8. Ianko
    Admin
    Ianko avatar
    1535 posts

    Posted 20 Oct 2014 Link to this post

    Hi Alex,

    The described issue is a bug and it is already logged in our data base for fixing.

    The encountered problem comes from the RadFileExplorer which overrides the localization string of the OK button. You can track further updates on the logged bug with this feedback portal item.

    To use the workaround provided you should customize the built-in dialog of the FileBrowser dialogs. To do so you should follow the approach demonstrated in the Customize Built-in Dialogs example and use the FileBrowser.ascx to incorporate the suggested temporary resolution.

    Regards,
    Ianko
    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.

     
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017