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

Clone grid before export?

3 Answers 120 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Jan
Top achievements
Rank 1
Jan asked on 28 May 2009, 08:57 AM
Hello,

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?

3 Answers, 1 is accepted

Sort by
0
Bruno
Top achievements
Rank 2
answered on 01 Jun 2009, 10:16 AM
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?

--Bruno
0
Marshall Moorman
Top achievements
Rank 1
answered on 01 Sep 2009, 05:09 PM
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?
0
Bruno
Top achievements
Rank 2
answered on 08 Sep 2009, 10:40 AM
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.
Tags
Grid
Asked by
Jan
Top achievements
Rank 1
Answers by
Bruno
Top achievements
Rank 2
Marshall Moorman
Top achievements
Rank 1
Share this question
or