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

Modify data before ExportToPdf

1 Answer 38 Views
Grid
This is a migrated thread and some comments may be shown as answers.
David Cohen
Top achievements
Rank 1
David Cohen asked on 09 May 2010, 10:01 AM
Hi

I need to modify some data before the export so the pdf file will contain the updated data.

I tried to go over all the items of the MasterTableView and update the Text property of cell (gridView1.MasterTableView.Items[i]["columnNAme"].Text).

It did not worked.

Is there any way to do it ?

Thanks a lot
David

1 Answer, 1 is accepted

Sort by
0
Daniel
Telerik team
answered on 10 May 2010, 03:50 PM
Hello David,

Depending on your scenario, you can either:

- use ItemCreated/ItemDataBound events:

or:
- use PdfExporting event and modify the raw HTML code:

Let me know if you need more information.

Best regards,
Daniel
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Tags
Grid
Asked by
David Cohen
Top achievements
Rank 1
Answers by
Daniel
Telerik team
Share this question
or