Change Forecolor

2 posts, 1 answers
  1. Mic
    Mic avatar
    5 posts
    Member since:
    May 2009

    Posted 29 Jan 2015 Link to this post

    is there a way to change ForeColor property (serverSide)?

    MySearchBox.ForeColor = myCol;   doesn't works

  2. Answer
    Dimitar Terziev
    Dimitar Terziev avatar
    1266 posts

    Posted 02 Feb 2015 Link to this post


    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";
        html .foo .rsbInput {

    We shall log this bug into our issue tracking system.

    Dimitar Terziev

    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.

Back to Top