Posted 25 April 2019, 7:39 am EST
What I am trying to do is exporting to Excel.
We have a FlexGrid but it contains only a single page of data. In other words there is server side pagination.
But we need to export all the data to Excel. And it should be flexible code that will work wih different grids.
So what we do:
- Create new FlexGrid dynamically
- Take all columns from original FlexGrid and put into a new FlexGrid
- Load all the data from the server and put it into a new FlexGrid
- Export do Excel and dispose new FlexGrid
Exporting itself works well but columns disappear from original FlexGrid…
I think this is because Step 2 where columns are put into another FlexGrid.
That’s why I need to create a copy of column.