Infragistics 10.2 .NET 3.5
I'm using a dropdown provider for a column within a webdatagrid. When I expand the drop down list all the item are center aligned. How do I modify the alignment to be left justified??
Thanks for your help!
I found that if I add text-align: left; to .igdd_Office2007BlueDropDownList in the ig_dropDown.css it works.
.igdd_Office2007BlueDropDownList
{
background-color: White;
font-size: 10pt;
font-family: Verdana, Arial, Helvetica, sans-serif;
margin: 0px;
padding: 1px;
text-align: left;
}
But I don't want to change the css. How do I do this in my aspx page??
Thanks for your help,
I tried your suggestion but the items in the drop down list are still centered. I got it to work with a regular webdropdown but this is a dropdownprovider within a webdatagrid.
Hello rcline,
A possible solution is to override the default CSS class in the page
where you are using the WebDropDown provider :
<style type="text/css">
.igdd_DropDownList
text-align: right;
</style>
Another way to do this is using selectors in our css classes, so they take preference, but it will be much harder to achieve it.
Below there is forum post regarding right alignment of a column for example:
http://forums.infragistics.com/forums/t/37511.aspx
Let me know if you need further questions