How to Set customize Tooltip Text for the RadWindows Image Buttons

4 posts, 0 answers
  1. Raj
    Raj avatar
    9 posts
    Member since:
    Oct 2007

    Posted 01 Nov 2008 Link to this post

    Hi There,
    I am facing a problem in setting a ToopTip for the Image Buttons(Close,Minimize,Maxmize) on the RadWindows. I want set  a help image in the Radwindows and want to set the ToolTip text on Mouse over  is "Help".
    How can I do this.
    Please, sugggest some solution.

    Thanks in Advance,
    Raj

     
  2. Svetlina Anati
    Admin
    Svetlina Anati avatar
    2795 posts

    Posted 03 Nov 2008 Link to this post

    Hello Raj,

    Currently, 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" : "Close", 
        "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 tooltip for the Minimize icon for example, you should change the "Minimize" string after the colons.

    As to your other question, about adding a custom icon in the RadWindow's Titlebar, I suggest to examine this thread.

    All the best,

    Svetlina
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. david
    david avatar
    1 posts
    Member since:
    Nov 2008

    Posted 18 Nov 2008 Link to this post

    I tried to use this approach but, doesn't work for me.
    Where i have to put this javascript?

    David
  5. Raj
    Raj avatar
    9 posts
    Member since:
    Oct 2007

    Posted 19 Nov 2008 Link to this post

    Hello David,

    Put this code in the  client-side script which open the Radwindow before the calling the  window.radopen().


    Telerik.Web.UI.RadWindowUtils.Localization =
        {
        "Close" : "Close",  
        "Minimize" : "Help",  
        "Maximize" : "Maximize",  
        "Reload" : "Reload",  
        "PinOn" : "Help",  
        "PinOff" : "Pin off",  
        "Restore" : "Restore",  
        "OK" : "Help",  
        "Cancel" : "Cancel",  
        "Yes" : "Yes",  
        "No" : "No"    
        }; 


    All the Best,
    Raj

Back to Top