This is a migrated thread and some comments may be shown as answers.

Change Forecolor

1 Answer 53 Views
SearchBox
This is a migrated thread and some comments may be shown as answers.
Mic
Top achievements
Rank 1
Mic asked on 29 Jan 2015, 10:56 AM
Hi,
is there a way to change ForeColor property (serverSide)?

MySearchBox.ForeColor = myCol;   doesn't works

Thanks

1 Answer, 1 is accepted

Sort by
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.

 
Tags
SearchBox
Asked by
Mic
Top achievements
Rank 1
Answers by
Dimitar Terziev
Telerik team
Share this question
or