We have the following template column on one of our grids. When we export to Excel, the three values in the ItemTemplate show up in the right order in Excel, but the three columns of the HeaderTemplate are reversed. Can anyone offer a solution as to why and how to stop this?
<telerik:GridTemplateColumn UniqueName="TemplateColumn" SortExpression="Approvals" InitializeTemplatesFirst="false"> <HeaderTemplate> <table id="tblApproval" cellspacing="0" style="width:100px;" class="myTable"> <tr> <td colspan="3" align="center"> Approved By</td> </tr> <tr> <td style="width: 33%"> <asp:LinkButton CssClass="Button" ID="btnEmployee" Text="Emp." ToolTip="Sort by Employee Approval" CommandName='Sort' CommandArgument='EmployeeApproved' runat="server" /></td> <td style="width: 34%"> <asp:LinkButton CssClass="Button" ID="btnClient" Text="Client" ToolTip="Sort by Client Approval" CommandName='Sort' CommandArgument='ClientApproved' runat="server" /></td> <td style="width: 33%"> <asp:LinkButton CssClass="Button" ID="btnPayroll" Text="Acct." ToolTip="Sort by Accounting Approval" CommandName='Sort' CommandArgument='PayrollApproved' runat="server" /></td> </tr> </table> </HeaderTemplate> <ItemTemplate> <table cellspacing="0" width="100%" class="myTable"> <tr> <td style="width: 33%"> <%# ((bool)Eval("EmployeeApproved") == true) ? "Yes" : "No"%> </td> <td style="width: 34%"> <%# ((bool)Eval("ClientApproved") == true) ? "Yes" : "No"%> </td> <td style="width: 33%"> <%# ((bool)Eval("PayrollApproved") == true) ? "Yes" : "No"%> </td> </tr> </table> </ItemTemplate> <ItemStyle HorizontalAlign="Center" /> </telerik:GridTemplateColumn>