This is a migrated thread and some comments may be shown as answers.

Localizing "On" and "Off" -texts

2 Answers 104 Views
ToggleSwitch
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Jukka
Top achievements
Rank 1
Jukka asked on 11 Feb 2012, 05:48 AM
Hello!

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 Answers, 1 is accepted

Sort by
0
Gary Davis
Top achievements
Rank 2
answered on 14 Feb 2012, 09:25 PM
...Or changing the text to Enable/Disable or Yes/No.

Gary Davis
0
Georgi
Telerik team
answered on 15 Feb 2012, 09:45 AM
Hi guys,

Thank you for contacting us.

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

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

Regards,
Georgi
the Telerik team
Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>
Tags
ToggleSwitch
Asked by
Jukka
Top achievements
Rank 1
Answers by
Gary Davis
Top achievements
Rank 2
Georgi
Telerik team
Share this question
or