Hi,
When I disable the webdropdown using
$find(webdropdown).set_enabled(false);
The webdropdown gets disabled. However, the font-color of the displayed item is not as expected. How can I change the font-color of the text displayed in the disabled webdropdown to navy.
I tried making changes ike "color:navy;" in the ".igdd_ValueDisplayDisabled" css class, ".igdd_ListItemDisabled" css class and ".igdd_ListItemDisabled a:link" but no change happened. Font-color remains same. May I know how I can achieve this?
Hello Sunil,Please let me know if you have any further questions regarding this issue.
Hello Sunil,If you inspect the elements in the browsers with F12 you will see tgat in IE the styles arre ignored even though it is set:
There should be some solution to it.
Hello Sunil,Basically .igdd_ControlDisabled,.igdd_ValueDisplayDisabled
{
color: Red;
background-color:Green;
}
should do the trick. However its working in FF and Chrome, but not working in IE 9 and Opera. This is general issue how the browsers treat a disabled element and there are people commiting same issue with the ordinary ASP TextBox on the net https://www.google.bg/search?q=input+disabled+text+color+ie&ie=utf-8&oe=utf-8&aq=t&rls=org.mozilla:en-US:official&client=firefox-a