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

Text at the end of exported file

1 Answer 11 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Dawson
Top achievements
Rank 1
Dawson asked on 04 Sep 2013, 11:01 AM
Hi,

I am trying to export radgrid data.  how can I add text at the end of exported file. I need the file in excel.

Thanks and regards..
Dawson

1 Answer, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 1
answered on 04 Sep 2013, 11:08 AM
Hi Dawson,

I guess you want to add a text just below to the exported Radgrid columns.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 comes here</div>");     
    }

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