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

How To Set EmptyMessage Border & Background Styles

3 Answers 90 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Cognitronic
Top achievements
Rank 2
Cognitronic asked on 14 Nov 2009, 05:48 PM
Hello,

I'm using the EmptyMessageStyle-BorderColor and I'm using the EmptyMessageStyle-BackColor properties of the RadInput control and would like to apply the same style and functionality to a RadComboBox.  How would I go about adding the border and backcolor styles when a user has not selected an item in the combobox?  Thanks!!

3 Answers, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 16 Nov 2009, 11:11 AM
Hello Daniel,

You can try out the following css code to set styles when no selection is made in the RadComboBox:
css:
.rcbInputCell .rcbEmptyMessage  
  {  
      color:White !important;  
      background-color: Red !important;        
  }  
 

Hope this helps..
Shinu.
0
Cognitronic
Top achievements
Rank 2
answered on 23 Dec 2009, 05:30 PM
Hi Shinu,

I'm able to change the background color, thanks!!!  Do you happen to know the  class to change the border as well??

Thanks for your help!!
0
Yana
Telerik team
answered on 28 Dec 2009, 01:36 PM
Hello Cognitronic,

Please try it like this:

.rcbInputCell .rcbEmptyMessage 
   color:White !important
   background: red !important;
   border: 1px solid black !important;      
   width: auto !important;
}

Regards,
Yana
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
ComboBox
Asked by
Cognitronic
Top achievements
Rank 2
Answers by
Shinu
Top achievements
Rank 2
Cognitronic
Top achievements
Rank 2
Yana
Telerik team
Share this question
or