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

Thread is closed for posting
2 posts, 0 answers
  1. Venkata
    Venkata avatar
    1 posts
    Member since:
    Aug 2009

    Posted 12 May 2013 Link to this post

    Is there anyway to make the RadToggleSwitch control to say "Yes / No" instead of "On / Off' ? 
  2. Todor
    Todor avatar
    798 posts

    Posted 13 May 2013 Link to this post

    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,
    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.
Back to Top