This is a migrated thread and some comments may be shown as answers.
ComboBox popup/dropdown text always centered
1 Answer 29 Views
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Ozzy Knox
Top achievements
Rank 1
Ozzy Knox asked on 10 Dec 2010, 12:41 PM
I have implemented the Telerik MVC ComboBox in 2 places in my application so far.  I have implemented them as per the Telerik demos. However, they consistently display the text in the dropdown list (popup as Telerik calls it) as center aligned.  Can somebody tell me how to correct this behaviour as the default should be left aligned as far as I'm concerned.

I am using version 2010.3.1110 of the Telerik MVC Extensions.

Thanks
Ozzy

1 Answer, 1 is accepted

Sort by
0
Ken Lewis
Top achievements
Rank 1
answered on 14 Jan 2011, 03:18 PM
I had the same problem and fixed it by adding the following line:

.DropDownHtmlAttributes(new { style = "text-align: left;" })

I hope that helps.

Ken
Tags
ComboBox
Asked by
Ozzy Knox
Top achievements
Rank 1
Answers by
Ken Lewis
Top achievements
Rank 1
Share this question
or