This question is locked. New answers and comments are not allowed.
Hi,
I have a following footer:
that works fine, but when I try to export it to Excel, I don't get it, my export options as follows:
I tried the simple footer, without binding, as follows:
I see it on the grid, but I don't get it on export to Excel
What I'm doing wrong?
Thanks,
Viki
I have a following footer:
in XAML: <telerik:GridViewColumn.FooterCellStyle> <Style TargetType="telerik:GridViewFooterCell"> <Setter Property="ContentTemplate"> <Setter.Value> <DataTemplate> <TextBlock Text="{Binding Text, ElementName=txtTest}"/> </DataTemplate> </Setter.Value> </Setter> </Style> </telerik:GridViewColumn.FooterCellStyle> <TextBlock Grid.Row="3" Grid.Column="1" x:Name="txtTest" Text="Employee name: "/> ============================================================ in C#: txtTest.Text += m_EmployeeReport.EmployeeName; that works fine, but when I try to export it to Excel, I don't get it, my export options as follows:
if (dialog.ShowDialog() == true) { using (Stream stream = dialog.OpenFile()) { GridViewExportOptions exportOptions = new GridViewExportOptions(); exportOptions.Format = ExportFormat.ExcelML; exportOptions.ShowColumnFooters = true; exportOptions.ShowColumnHeaders = true; exportOptions.ShowGroupFooters = false; gridEmployeeResult.Export(stream, exportOptions); }I tried the simple footer, without binding, as follows:
<telerik:GridViewDataColumn.Footer> <TextBlock Text="HELLO"/> </telerik:GridViewDataColumn.Footer>I see it on the grid, but I don't get it on export to Excel
What I'm doing wrong?
Thanks,
Viki
