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

combox border

3 Answers 64 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Ron
Top achievements
Rank 1
Ron asked on 28 Aug 2011, 07:49 PM
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

3 Answers, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 29 Aug 2011, 05:01 AM
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.
0
Ron
Top achievements
Rank 1
answered on 30 Aug 2011, 02:24 AM
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,
0
Shinu
Top achievements
Rank 2
answered on 30 Aug 2011, 05:06 AM
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.
Tags
ComboBox
Asked by
Ron
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Ron
Top achievements
Rank 1
Share this question
or