I'm in the process of converting all my <asp:radiobutton> and <asp:Checkbox> controls over to <telerik:radbutton> setting ButtonType="ToggleButton" and ToggleType="CheckBox" || ToggleType="Radio". We're making these updates so that the controls can be custom-styled using CSS. This is working well but we're running into just one issue. What we're struggling with is figuring out how to change the color of the checkbox text based on whether the checkbox is checked or not checked. I've turned on every optional CssClass attribute to see what's rendered in the output, but i don't see any class name changes to the <span> around the text element.
Regardless of whether the checkbox is checked or not-checked, the output HTML looks like:
<span class="rbText rbSecondary">
This is my checkbox text.
</span>
I can see that the <span> tag that contains the primary icon has a class that changes from rbToggleCheckbox to rbToggleCheckboxChecked when the checkbox is checked. How can we accomplish the samething with the text portion of the checkbox? I was really kind of expecting to see something like a SelectedCss attribute or something like some of your other controls have. I experimented with the PressedCssClass attribute but that only seems to be active for a split second while the item is being pressed. if the page loads and the checkbox is initially checked that class isn't referenced.
Any advice you have for us is greatly appreciated.
Thanks!
-Mark
Regardless of whether the checkbox is checked or not-checked, the output HTML looks like:
<span class="rbText rbSecondary">
This is my checkbox text.
</span>
I can see that the <span> tag that contains the primary icon has a class that changes from rbToggleCheckbox to rbToggleCheckboxChecked when the checkbox is checked. How can we accomplish the samething with the text portion of the checkbox? I was really kind of expecting to see something like a SelectedCss attribute or something like some of your other controls have. I experimented with the PressedCssClass attribute but that only seems to be active for a split second while the item is being pressed. if the page loads and the checkbox is initially checked that class isn't referenced.
Any advice you have for us is greatly appreciated.
Thanks!
-Mark