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

GridTemplate Column Checkbox problem

1 Answer 36 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Pardha Saradhi
Top achievements
Rank 1
Pardha Saradhi asked on 27 Oct 2010, 01:22 PM
Hi,

I am unable to align the checkbox column of Templatecolumn to center in the Telerik grid column. Checkbox column is the first column and i am unable to make it center.
Please find the bellow code

<telerik:GridTemplateColumn UniqueName="ChkTmpColumn" HeaderText="Chk1" AllowFiltering="false" Resizable = "false" Reorderable = "false" >
                                                        <HeaderTemplate>                                                       
                                                            <asp:CheckBox ID="hdrChkTmpColumn" AutoPostBack="false" runat="server" ></asp:CheckBox>
                                                        </HeaderTemplate>
                                                        <ItemTemplate>                                                          
                                                            <asp:CheckBox ID="ChkTmpColumnSearch" AutoPostBack="false" runat="server" ></asp:CheckBox>
                                                        </ItemTemplate>
                                                        <HeaderStyle Width="50px"  HorizontalAlign="Center"  VerticalAlign="Middle" /> 
                                                        <ItemStyle  HorizontalAlign="Center" VerticalAlign="Middle" /> 

                                                    </telerik:GridTemplateColumn>


Please view the attached screen shot for further reference.
Thanks in advance.

1 Answer, 1 is accepted

Sort by
0
Pavlina
Telerik team
answered on 27 Oct 2010, 01:54 PM
Hello Pardha,

I have followed your scenario and prepared a sample project that is working as expected. You can find it attached to this message. Give it a try and let me know what is the difference in your case.

I hope it helps.

Sincerely yours,
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
Pardha Saradhi
Top achievements
Rank 1
Answers by
Pavlina
Telerik team
Share this question
or