How To Set EmptyMessage Border & Background Styles

4 posts, 0 answers
  1. Cognitronic
    Cognitronic avatar
    11 posts
    Member since:
    Sep 2012

    Posted 14 Nov 2009 Link to this post

    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!!
  2. Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 16 Nov 2009 Link to this post

    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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Cognitronic
    Cognitronic avatar
    11 posts
    Member since:
    Sep 2012

    Posted 23 Dec 2009 Link to this post

    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!!
  5. Yana
    Admin
    Yana avatar
    4554 posts

    Posted 28 Dec 2009 Link to this post

    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.
Back to Top