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

Export to CSV not accept Template field

1 Answer 90 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Dhamodharan
Top achievements
Rank 1
Dhamodharan asked on 12 Nov 2010, 12:25 PM
Hi,

I am trying to export to CSV file. but Template field values has been came empty value. i have attached code also. please give me solution.

<telerik:GridTemplateColumn DataField="Current_Value" DataType="System.String" HeaderText="New Value"
                                    SortExpression="Current_Value" UniqueName="Current_Value">
                                    <ItemTemplate>
                                        <asp:Label ID="lblCurrentValue" SkinID="NoBold" runat="server" Text=<%# Eval("Current_Value") ></asp:Label>                                       
                                    </ItemTemplate>
                                </telerik:GridTemplateColumn>


Thanks,
Dhamu.

1 Answer, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 12 Nov 2010, 01:56 PM
Hello Dhamu,


Set the ExportSettings -> ExportOnlyData property to "False" and see whether it helps.


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