We have a RadGrid on a page that has a first and last column and the columns in the middle are built dynamically based on some criteria. Everything works great and the edit mode is perfect with the exception of one thing - styling with IE. Everything in FF looks perfect and is exactly what we want and after a few tweaks we got it to work with IE8. Unfortunately, in compatibility mode the column alignments are not being honored. Here is what the structure looks like:
Does anyone have any suggestions as to what we can do to ensure the dynamic columns are always right-aligned cross-browser? We're using the default skin with the Q1 2009 release.
GridNumericColumn col = new GridNumericColumn(); | |
GridTemplateColumnEditor Editor = new GridTemplateColumnEditor() { ID = "Editor" + FieldName }; | |
rgCalendar.Columns.Add(col); | |
phEditors.Controls.Add(Editor); | |
col.DataField = FieldName; | |
col.UniqueName = FieldName; | |
col.DataType = typeof(int); | |
col.HeaderText = ScrapType.Name; | |
col.ItemStyle.Width = Unit.Pixel(40); | |
col.ItemStyle.HorizontalAlign = HorizontalAlign.Right; | |
col.ColumnEditorID = Editor.ID; | |
col.HeaderStyle.Wrap = false; | |
col.HeaderStyle.HorizontalAlign = HorizontalAlign.Right; | |
Does anyone have any suggestions as to what we can do to ensure the dynamic columns are always right-aligned cross-browser? We're using the default skin with the Q1 2009 release.