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

How to get RadToggleSwitch to say yes / no instead of On / Off

1 Answer 72 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Venkata
Top achievements
Rank 1
Venkata asked on 13 May 2013, 04:53 AM
Is there anyway to make the RadToggleSwitch control to say "Yes / No" instead of "On / Off' ? 

1 Answer, 1 is accepted

Sort by
0
Todor
Telerik team
answered on 13 May 2013, 07:04 AM
Hi Venkata,

Thank you for contacting us.

You can create a converter that converts Boolean values to the requested strings and use this converter for binding the Content property of RadToggleSwitch to the value of its IsChecked property:
<telerikPrimitives:RadToggleSwitch Content="{Binding RelativeSource={RelativeSource Self}, Path=IsChecked, Converter={StaticResource YesNoConverter}}"/>

Let me know if you need further assistance.


All the best,
Todor
the Telerik team
Have a suggestion or face a problem - you can use the Ideas & Feedback portal to submit ideas, feedback and vote for them.
Tags
General Discussions
Asked by
Venkata
Top achievements
Rank 1
Answers by
Todor
Telerik team
Share this question
or