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

[Solved] Allow visitor to choose excel or pdf output

1 Answer 88 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Clive Hoggar
Top achievements
Rank 1
Clive Hoggar asked on 03 Oct 2009, 11:50 AM
Hi

I have successfully set up a grid export to Excel, but now I want to allow visitors to select alternative format
by clicking different buttons  - excel or pdf. 

Can you give me some tips on how to approach this, bearing in mind that the style/formatting needs
of each type are so different?

Is there a demo/barebones example which shows this multiple choice (including pdf)?

Thanks

Clive


1 Answer, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 05 Oct 2009, 01:18 PM
Hi Clive,

One suggestion would be declaring a global variable for specifying the export type and check for type in ItemCreated event for applying different styles. Similar scenario is shown in "RadGrid formatting and PDF export" section of following documentation
Exporting tips and tricks

Also checkout the demo: MS Excel/MS Word/CSV

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