"Stubborn" RadToggleButton

2 posts, 0 answers
  1. Brummi
    Brummi avatar
    4 posts
    Member since:
    Mar 2007

    Posted 23 Apr 2007 Link to this post


    I created a custom theme for a RadToggleButton, mainly a different background and text color based on the ToggleState. So far everything works fine, i click the button and the background and text colors changes accordingly.

    Now my problem is the following: i have four of these buttons. When i click on one the clicked should switch the ToggleState from "off" to "on" the others to "off" (using the click-event). Everything seems to work fine (i'm observing the IsChecked and ToggleState in a "watch") but the button never changes it's appearance.

    Here's what i do:
    - in every click-even i call a method with the button "number"
    - in the "toggle" method i'll set all ToggleState to "off" and then then ToggleState of the clicked button to "on"

    Am i doing something wrong or i am missing anything?
    Thanks for your help!

    Best regards,
  2. Georgi
    Georgi avatar
    212 posts

    Posted 24 Apr 2007 Link to this post

    Hello Daniel,

    Everything you described sounds ok. I suspect that the problem is in the settings of the custom theme you've created. Please, send us a sample project (just a form) with the toggle buttons and the theme you are using and we will try to fix it for you. You can do so in a new support ticket.

    the telerik team

    Instantly find answers to your questions at the new Telerik Support Center
Back to Top