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

Radgrid Allignment issue

1 Answer 46 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Em4o
Top achievements
Rank 2
Em4o asked on 20 Jul 2010, 10:33 AM
I attached a file

So, why subject, attachment column are not allign? when i specify horizontal align and vertical align properties for this items

when i pres with mouse some of the field then it will auto-align them, but in first load - its not align
very strange

is it because of the icons on the end?

<telerik:GridCheckBoxColumn
                            DataField="fldIsSent"
                            HeaderText="Sent:"
                            UniqueName="fldIsSent"
                            Visible="false">                        
                          <ItemStyle  width="40px" VerticalAlign="Middle" HorizontalAlign="Center"></ItemStyle>
                          <HeaderStyle width="40px" VerticalAlign="Middle" HorizontalAlign="Center" ></HeaderStyle>
</telerik:GridCheckBoxColumn>
 <telerik:GridTemplateColumn
                            UniqueName="EditColumn"
                            HeaderText="Edit/View">
                              <ItemTemplate>
                                    <a href="#" onclick="ShowUpdateForm('<%#DataBinder.Eval(Container.DataItem,"fldEmailID")%>','<%#DataBinder.Eval(Container.DataItem,"fldMeetingID")%>'); return false;">
                                        <asp:ImageButton ID="ibEditViewEmail" ImageUrl='../images/Email/email_edit.png' ToolTip="Edit/View Email"  runat ="server" alt="" style="cursor:hand;vertical-align: middle;" />
                                    </a>
                                </ItemTemplate>
                           <HeaderStyle  Width="50px" VerticalAlign="Middle" HorizontalAlign="Center"></HeaderStyle>
                           <ItemStyle  Width="50px" VerticalAlign="Middle" HorizontalAlign="Center" Wrap="false"></ItemStyle>
                        </telerik:GridTemplateColumn>

1 Answer, 1 is accepted

Sort by
0
Pavlina
Telerik team
answered on 21 Jul 2010, 02:30 PM
Hi emin,

Please have in mind that it is not recommended to use ItemStyle-Width to set column widths. Only HeaderStyle-Width should be used.

Give this suggestion a try and see if it helps.

Best wishes,
Pavlina
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
Grid
Asked by
Em4o
Top achievements
Rank 2
Answers by
Pavlina
Telerik team
Share this question
or