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

Combobox emptymessage color

8 Answers 298 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Fred Mare
Top achievements
Rank 1
Fred Mare asked on 19 Nov 2010, 07:44 AM
Hi

Is it possible to change the emptymessage color? The RadTextbox has some attributes to do this.

Fred

8 Answers, 1 is accepted

Sort by
0
Accepted
Princy
Top achievements
Rank 2
answered on 19 Nov 2010, 10:12 AM
Hello ,

You can try the following style to change the color of the EmptyMessage.
CSS:
<style type="text/css">
        .RadComboBox_Default .rcbInputCell .rcbEmptyMessage
        {
            color: Red !important;
        }
    </style>

Thanks,
Princy.
0
Accepted
Kalina
Telerik team
answered on 19 Nov 2010, 10:35 AM
Hello Fred Mare,

That is right, you can change the color of the empty message at RadComboBox input by overriding this CSS style:
div.RadComboBox_Default .rcbInputCell .rcbEmptyMessage
{
    color: #FF0000;
}

Please note that this code will be applied to a RadComboBox that uses the Default Skin (this happens if you have set Skin = “Default” or you have not set the Skin property at all).
If you use a different skin - simply replace the _Default part of the selector with the name of your skin. For example if you use Vista - define the style like this :
div.RadComboBox_Vista .rcbInputCell .rcbEmptyMessage

All the best,
Kalina
the Telerik team
Browse the vast support resources we have to jumpstart your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.
0
Fred Mare
Top achievements
Rank 1
answered on 19 Nov 2010, 10:59 AM
Thank you guys!
0
Jennifer Fenzl
Top achievements
Rank 1
answered on 24 Jan 2012, 04:38 PM
How do I make the emptymessage text not to be in italics?
0
Shinu
Top achievements
Rank 2
answered on 25 Jan 2012, 05:48 AM
Hello Jennifer,

Try the following CSS.
CSS:
.RadComboBox_Default .rcbInputCell .rcbEmptyMessage
{
   font-style:normal !important;
}

-Shinu.
0
Kalina
Telerik team
answered on 25 Jan 2012, 05:34 PM
Hi Jennifer,

You cant try adding this style on your page:
<style type="text/css">
    div.RadComboBox .rcbInputCell .rcbEmptyMessage
    {
        font-style: normal;
    }
</style>

Regards,
Kalina
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now
0
Jignesh
Top achievements
Rank 1
answered on 21 Apr 2014, 10:51 PM
Kalina,

The solution that you have proposed:
<style type="text/css">    
      div.RadComboBox .rcbInputCell .rcbEmptyMessage    
      {        
                     font-style: normal;    
      }
</style>That it for example,few releases down the line,if Telerik is no longer using the rcbEmptyMessage css class,then this solution will fail right?.Is there any way we can handle is porgrammatically like EmptyMessage-FontStyle:normal.



0
Shinu
Top achievements
Rank 2
answered on 22 Apr 2014, 03:21 AM
Hi Jignesh,

Please try the following JavaScript to change the style of RadComboBox EmptyMessage programmatically.

JavaScript:
<script type="text/javascript">
    function pageLoad() {
        var comboBox = $find("<%=radcboEmptyMessage.ClientID %>");
        var inputElement = comboBox.get_inputDomElement();
        inputElement.style.fontStyle = "normal";
    }
</script>

Thanks,
Shinu.
Tags
ComboBox
Asked by
Fred Mare
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Kalina
Telerik team
Fred Mare
Top achievements
Rank 1
Jennifer Fenzl
Top achievements
Rank 1
Shinu
Top achievements
Rank 2
Jignesh
Top achievements
Rank 1
Share this question
or