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

[Solved] exporting/printing which one am i doing

1 Answer 90 Views
GridView
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
david ocasio
Top achievements
Rank 1
david ocasio asked on 09 Nov 2009, 02:10 AM
both exporting and printing use the same export event
so how can i tell in that routine what i am doing

for printing i have injected hard page breaks and dummy new headers for
the tops of the pages.

but for excel i want it to be just one long table

i could set a flag before it starts (which button i pressed)
but i dont have a good way to know when the exporting has ended so i can reset that flag

i suppose i could allow that flag to just be overwritten each time but in the case of a large grid
i suspect they may collide

any ideas would be helpful

thanks
dco

1 Answer, 1 is accepted

Sort by
0
Vlad
Telerik team
answered on 09 Nov 2009, 04:03 PM
Hello,

Currently this is the only way to indicate what happened since both will use same extension methods called by the developer. Generally our extension methods are not asynchronous and that is why any additional event is not needed.

Greetings,
Vlad
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
GridView
Asked by
david ocasio
Top achievements
Rank 1
Answers by
Vlad
Telerik team
Share this question
or