Hi,
I'm using a UltraWebGrid with 'LoadOnDemand = LoadOnDemand.Xml'. Everything works fine and additional rows are fetched when needed.
On my page is a Button wich triggers a callback. In this callback I do the following:
mExcelExporter.Export(mGrid, "Affinity.xls");
Let's say my grid loads 50 rows at first. Then I scroll down a couple of times and the grid displays 100 rows now. If I then hit the 'Export Button' and start the excel export, the generated excel files only contains 50 rows eventhough the grid displays 100 at that time.
Am I doing something wrong? Is there a workaround?
Thanx
martin
The exporter can't keep track of the load on demand of the grid. Instead, it simply asks the grid to render as if it were the first request - hence the 50 rows of data. What I normally do is manually databind the grid to the entire set of data (turning off any load-on-demand functionality) from inside of the export process. There's a BeforeExport event that you can use to make these changes.
-Tony