Is there a way to disable / override the default style for disabled WebControls
that I have been caught since I was doing web development; is there a way to do this? Can I override this style and rely on some other value to inform my users that this control cannot be rendered with?
My problem is that labeling the RadioButton- and CheckBox-Lists labels makes them unreadable.
I could always replace disabled TextBoxes with style / themed labels to make them look like TextBoxes, but that would be more invasive ...
[EDIT] Ok, sorry; it is not a solution; The TextBox already have a "Readonly" option, which means they look the way I want them, even though they are blocked from user input; the problem is more related to IList Controls (RadioButtonLists and CheckBoxLists.)
As always, thanks for your time!
source to share
Sure! It looks like you are looking for a CSS attribute selector :
input[@disabled=true], input[@disabled] {
.. insert your new style here ..
}
Hope it helps!
source to share