Export a collapsed GridView to XLS

2 posts, 1 answers
  1. Vinc3nt
    Vinc3nt avatar
    10 posts
    Member since:
    Jun 2013

    Posted 15 Jul 2013 Link to this post

    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
  2. Answer
    Dimitrina
    Admin
    Dimitrina avatar
    3769 posts

    Posted 15 Jul 2013 Link to this post

    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 >>
Back to Top