combox border

4 posts, 0 answers
  1. Ron
    Ron avatar
    113 posts
    Member since:
    Apr 2011

    Posted 28 Aug 2011 Link to this post

    Hi,

    Can somebody tell me if it is possible to set the combo box outer border? I say outer border because
    it appears that by using the properties giving in visual studio to set the border only set the inner border.
    but the border around the combo box will remain which ever color in used by the skin you choose. I've
    search high and low, will really appreciate your help, I also attached a photo example.

    Thanks,
    Ron
  2. Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 29 Aug 2011 Link to this post

    Hello Ron,

    You can try the following CSS to set border for RadComboBox.
    CSS:
    <style type="text/css">
       .RadComboBox  td.rcbInputCell
      {
       border:1px solid Red !important;
      }
    </style>

    Thanks,
    Shinu.
  3. Ron
    Ron avatar
    113 posts
    Member since:
    Apr 2011

    Posted 29 Aug 2011 Link to this post

    This worked, Thanks, but how would I call this from javascript? I have a javascript function to highlight the combo box if no item was selected.

    Thanks again,
  4. Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 30 Aug 2011 Link to this post

    Hello Ron,

    Try the following javascript to change the combobox border color.
    JS:
    <script type="text/javascript">
    function OnClientLoad(sender,args)
    {
    sender._element.style.border = "solid 1px red";
    }
    </script>

    Thanks,
    Shinu.
Back to Top