Create New RadGrid Invisibly to Export Contents

2 posts, 0 answers
  1. Deepak Vasudevan
    Deepak Vasudevan avatar
    82 posts
    Member since:
    May 2010

    Posted 02 Mar 2012 Link to this post

    Dear Telerik Team,

    Let me know if the following approach would work out.

    1) Page.aspx displays a RadGrid with a number of customizations user can  do on it to show the data.
    2) Page.aspx has a button called 'Generate PDF'. When I click it, is it possible to create a new instance of RadGrid, assign the existing grid value to it (BYVAL and not BYREF). Then export the PDF from the new instance of RadGrid.

    Basically I want to do this because I can not call 'Rebind' on the existing grid and/or visually make any changes on the existing grid. The new grid should be invisible totally only for the purpose of PDF.
  2. Casey
    Casey avatar
    299 posts
    Member since:
    Jul 2009

    Posted 02 Mar 2012 Link to this post

    Deepak,

    Do you just need to hide columns for the export? Are you trying to do other things with the RadGrid when exporting it? I'm just a little confused as to what is going to be different between the two RadGrids.

    Could you please elaborate what needs to be different between the first RadGrid and the export?

    Thanks!
    Casey
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top