RadWindow title bar buttons tooltip localized

2 posts, 0 answers
  1. riz
    riz avatar
    3 posts
    Member since:
    Apr 2009

    Posted 17 Apr 2009 Link to this post

    Hi,

    In my application i have a RadWindow displayed on click on a "Display" button.
    But my application is entirely localized in "fr-FR" culture. And the tooltips of title bar buttons are in "en-US" culture.

    How can i changed the tooltip text on a title bar button. I was looking for a way to rich the property in codebehind but without any result.

    Does someone have an idea?

    Thanks.

    Riz.
  2. Fiko
    Admin
    Fiko avatar
    1406 posts

    Posted 17 Apr 2009 Link to this post

    Hello Riz,

    You can change the localization strings of the RadWindow for ASP.NET AJAX control by using the following JavaScript code:

    Telerik.Web.UI.RadWindowUtils.Localization =   
    {  
        "Close" : "My custom 'Close' text",  // For example ;
        "Minimize" : "Minimize",  
        "Maximize" : "Maximize",  
        "Reload" : "Reload",  
        "PinOn" : "Pin on",  
        "PinOff" : "Pin off",  
        "Restore" : "Restore",  
        "OK" : "OK",  
        "Cancel" : "Cancel",  
        "Yes" : "Yes",  
        "No" : "No"    
    };   

    Please, change the string after the colons and they will be shown as text to the buttons or in the tooltip when you hover over the RadWindow buttons. For changing the text buttons in RadPrompt you need to replace the "OK" and "Cancel" strings after the colons.
     
    For your convenience I attached a sample demo.
    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.
Back to Top