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

"Stubborn" RadToggleButton

1 Answer 101 Views
Themes and Visual Style Builder
This is a migrated thread and some comments may be shown as answers.
Brummi
Top achievements
Rank 1
Brummi asked on 23 Apr 2007, 01:20 PM
Greetings,

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,
Daniel

1 Answer, 1 is accepted

Sort by
0
Georgi
Telerik team
answered on 24 Apr 2007, 04:00 PM
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.

 
Greetings,
Georgi
the telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
Themes and Visual Style Builder
Asked by
Brummi
Top achievements
Rank 1
Answers by
Georgi
Telerik team
Share this question
or