Clone grid before export?

4 posts, 0 answers
  1. Jan
    Jan avatar
    10 posts
    Member since:
    Jul 2008

    Posted 28 May 2009 Link to this post


    Before grid export, I change some properties like PageSize (to export all rows), replace/hide checkbox columns, rebind, etc. Problem is that sometimes, when the grid is set to update after an ajax request, these changes are visible in the browser.

    I can restore the original properties in a try..finally block, of course, but I would rather clone the grid or revert it to before the changes. 

    What do you recommend?
  2. Bruno
    Bruno avatar
    105 posts
    Member since:
    Mar 2008

    Posted 01 Jun 2009 Link to this post

    This sounds quite strange as when grid is exported the actual page is not updated as the response is redirected to stream the exported file. Therefore no changes should be applied to the actual page.

    Can you please provide little more details?
    Do you store any grid's setting in session or anywhere else?

  3. Marshall Moorman
    Marshall Moorman avatar
    8 posts
    Member since:
    Sep 2007

    Posted 01 Sep 2009 Link to this post

    I am writing a custom exporter for the RadGrid and would like the ability to clone a RadGrid prior to this process.  Is this possible?
  4. Bruno
    Bruno avatar
    105 posts
    Member since:
    Mar 2008

    Posted 08 Sep 2009 Link to this post

    It depends on the approach you use to gather the data from RadGrid. I believe there is no built-in way to clone RadGrid - you should handle this functionality on your own.
Back to Top