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

excel with a text at the end of grid

1 Answer 44 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Ryann
Top achievements
Rank 1
Ryann asked on 19 Mar 2014, 12:30 PM
Hi.
i want to export to excel with a text at the end of grid.how to achieve this??

1 Answer, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 19 Mar 2014, 12:38 PM
Hi Ryann,

Please try the following code snippet in the OnGridExporting event of the RadGrid.

C#:
protected void RadGrid1_GridExporting(object sender, Telerik.Web.UI.GridExportingArgs e)
{
 e.ExportOutput = e.ExportOutput.Replace("</table>", "</table><div>your text </div>");     
}

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