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

Export a collapsed GridView to XLS

1 Answer 35 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Vinc3nt
Top achievements
Rank 1
Vinc3nt asked on 15 Jul 2013, 11:24 AM
Hi,

I have two buttons and one RadGridView.
  • The first button change the visibility property of the grid (Visible/Collapsed).
  • The second button export the RadGridView to Excel format.

At the beginning, the grid is collapsed.
The user has the possibility to export the grid when the grid is in collapsed mode.

The problem is to directly click on export (grid collapsed). The excel file is blank.
But when I click on the Visibility button to show then hide the grid, the export works.

Can you help me ?

Thank you,
Vincent

1 Answer, 1 is accepted

Sort by
0
Accepted
Dimitrina
Telerik team
answered on 15 Jul 2013, 12:00 PM
Hi Vincent,

You can only export the data (via the inbuilt Export method) when the GridView is visible and its visual elements are realized. 

Regards,
Didie
Telerik
TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for SILVERLIGHT.
Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
Sign up for Free application insights >>
Tags
GridView
Asked by
Vinc3nt
Top achievements
Rank 1
Answers by
Dimitrina
Telerik team
Share this question
or