Localizing "On" and "Off" -texts

Thread is closed for posting
3 posts, 0 answers
  1. Jukka
    Jukka avatar
    5 posts
    Member since:
    Feb 2011

    Posted 10 Feb 2012 Link to this post


    Few questions about ToggleButton:
    1. Is it possible to localize the "On" and "Off" -texts shown next to the ToggleButton? 
    2. Can the "On" and "Off" texts be hidden?

    Thanks in advance,
    J. Arola
  2. Gary Davis
    Gary Davis avatar
    71 posts
    Member since:
    Oct 2003

    Posted 14 Feb 2012 Link to this post

    ...Or changing the text to Enable/Disable or Yes/No.

    Gary Davis
  3. Georgi
    Georgi avatar
    296 posts

    Posted 15 Feb 2012 Link to this post

    Hi guys,

    Thank you for contacting us.

    The On and Off strings are localizable and they are translated in German, Italian and French. Additionally you may translate them in an arbitrary language using our Localization support. More information may be found in our online documentation. Optionally you may hide the texts by setting an empty content to the control.

    Yes, this can be easily done by setting the Content property of the control and specifying the proper value converter. In our Demo application (available with the installation package), the RadToggleSwitch example shows how the On/Off texts are replaced by two pictures.

    I hope this helps. Let me know if I can assist you in some other way.

    the Telerik team
    Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>
Back to Top