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

Grid Column Head and Data missmatch on Pageload

1 Answer 25 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Rahul
Top achievements
Rank 1
Rahul asked on 21 Jan 2014, 07:58 AM
HI,
    In my case When Page load that times Grids Columns Header and Columns Data are miss-match please find the attachment Image.please provide solution.

My grid code is
 <telerik:RadGrid ID="gv_LeaseProperty1" runat="server" AllowPaging="True" CssClass="rgHeaderDiv"  AllowMultiRowSelection="True" AutoGenerateColumns="False"  onneeddatasource="gv_LeaseProperty1_NeedDataSource" ShowFooter="true" GridLines="None" ShowGroupPanel="True" >
                                                 <ClientSettings AllowDragToGroup="True">
                                                            <Scrolling AllowScroll="true"  UseStaticHeaders="true" SaveScrollPosition="true" />                                                          
                                                 </ClientSettings> 
                                           <MasterTableView>
                                               <Columns>
                                                   <telerik:GridTemplateColumn UniqueName="CheckBoxTemplateColumn">
                                                       <ItemTemplate>
                                                           <asp:CheckBox ID="chk_ItemProperty" runat="server" OnCheckedChanged="chk_ItemProperty_CheckedChanged"
                                                           AutoPostBack="True" />
                                                       </ItemTemplate>
                                                       <HeaderTemplate>
                                                           <asp:CheckBox ID="chk_HeaderProperty" runat="server" OnCheckedChanged="chk_HeaderProperty_CheckedChanged"
                                                           AutoPostBack="True" />
                                                       </HeaderTemplate>
                                                   </telerik:GridTemplateColumn>
                                                 <telerik:GridBoundColumn Display="false" DataField="Property_Id" DataType="System.Int32" HeaderText="Property Id" FilterControlAltText="Filter column column" UniqueName="Property_Id" />
                                                 <telerik:GridBoundColumn DataField="Code" DataType="System.String" HeaderText="Code" FilterControlAltText="Filter column column" UniqueName="Code" />
                                                 <telerik:GridBoundColumn DataField="Title" DataType="System.String" HeaderText="Property Name" FilterControlAltText="Filter column column" UniqueName="Title" />
                                                 <telerik:GridBoundColumn DataField="Area" DataType="System.Decimal" HeaderText="Area" FilterControlAltText="Filter column column" UniqueName="Area" />
                                                 <telerik:GridBoundColumn DataField="Landlord_Name" DataType="System.String" HeaderText="Landlord Name" FilterControlAltText="Filter column column" UniqueName="Landlord_Name" />
                                                 <telerik:GridBoundColumn DataField="TotalParcel" DataType="System.Int32" HeaderText="Total Parcel" FilterControlAltText="Filter column column" UniqueName="TotalParcel" />
                                               </Columns>
                                           </MasterTableView>
                                           </telerik:RadGrid>  
Thanks,
Rahul

1 Answer, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 22 Jan 2014, 10:06 AM
Hi Rahul,

I was not able to replicate the issue at my side. Can you please try setting Width="100%" for MasterTableView and check if it makes any difference. Please provide the version you are using  and any other steps to reproduce the issue.

Thanks,
Princy
Tags
Grid
Asked by
Rahul
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Share this question
or