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

Right Alignment for Data in Combobox

1 Answer 140 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
gmsgms
Top achievements
Rank 1
gmsgms asked on 05 Aug 2008, 07:44 AM

Dear Telerik,

i am using rad combo box, and i fills the data in it from the database.

How can i set the data alignment to be right?


Thanks in advance

1 Answer, 1 is accepted

Sort by
0
Accepted
Princy
Top achievements
Rank 2
answered on 05 Aug 2008, 12:21 PM
Hello,

You can set the style of the RadComboBoxItem by making necessary changes in the Styles.css file of the skin used.

aspx:
<rad:RadComboBox  DataSourceID="SqlDataSource2" DataTextField="FirstName" ID="RadComboBox2" runat="server" Skin="ClassicBlue" >           
</rad:RadComboBox> 

Styles.css:
.ComboBoxInput_ClassicBlue 
{    
    text-align: right; 
 
.ComboBoxInputHover_ClassicBlue 
{    
    text-align: right; 
 
.ComboBoxItem_ClassicBlue 
{    
    text-align: right; 
 
.ComboBoxItemHover_ClassicBlue 
{    
    text-align: right; 

Thanks
Princy.
Tags
ComboBox
Asked by
gmsgms
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Share this question
or