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

Export multiple RadGridViews in RadPanes to Excel Files

3 Answers 101 Views
GridView
This is a migrated thread and some comments may be shown as answers.
James
Top achievements
Rank 1
James asked on 16 Jul 2012, 08:55 AM
Hi Telerik Team,

My application has multiple RadPanes, each RadPane has one or more RadGridView(s). I'm looking for a way to export all the RadGridViews on these RadPanes to an Excel files.
Currently, I'm only able to export the RadGridviews on the active RadPane which requires me to click on each RadPanes before exporting in order to export all the RadGridView. For example, I have 3 RadPanes, if I want to export all the RadGridViews in these RadPanes I have to click on these RadPanes one by one before exporting. If I don't do that I will only be able to export the GridViews on the active RadPane, but not all. 

Is there a solution for this? Thank you.    

3 Answers, 1 is accepted

Sort by
0
Nick
Telerik team
answered on 18 Jul 2012, 02:53 PM
Hi James,

The behavior you are experiencing is cause by the fact that none of the GridViews that have not been brought into view have been loaded yet.

The solution to the problem would be to loop through the Panes and bring every one of them in view at the start of the application. This way all the GridViews will have their data loaded and you will be able to export them at once.

Let me know if you need any further help with this. 

All the best,
Nik
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

0
James
Top achievements
Rank 1
answered on 19 Jul 2012, 06:26 AM
Hi Nik,

Thank you for your reply. I tried to do as you suggest but it didn't work. Can you please give me a sample of code on how to bring gridviews to view. Thanks

Regards
James
0
Nick
Telerik team
answered on 23 Jul 2012, 03:17 PM
Hello James,

You can look in your other thread to see a sample approach of achieving the desired behavior.

Regards,
Nik
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Tags
GridView
Asked by
James
Top achievements
Rank 1
Answers by
Nick
Telerik team
James
Top achievements
Rank 1
Share this question
or