Hi,
is there a way to change ForeColor property (serverSide)?
MySearchBox.ForeColor = myCol; doesn't works
Thanks
1 Answer, 1 is accepted
0
Accepted
Dimitar Terziev
Telerik team
answered on 02 Feb 2015, 08:46 AM
Hi,
Currently the ForeColor as well as the BackColor are rendered on the wrapping div element of the control, thus they could not take effect, they should be rendered on the input instead. In order to workaround this problem you could use the CssClass property of the control to assign a class with specific styles as shown below:
RadSearchbox.CssClass = "foo";
<style>
html .foo .rsbInput {
background-color:blue;
}
</style>
We shall log this bug into our issue tracking system.
Regards,
Dimitar Terziev
Telerik
Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.