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