Change Forecolor

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

    Posted 29 Jan 2015 Link to this post

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

    MySearchBox.ForeColor = myCol;   doesn't works

    Thanks
  2. Answer
    Dimitar Terziev
    Admin
    Dimitar Terziev avatar
    1266 posts

    Posted 02 Feb 2015 Link to this post

    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.

     
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top