﻿<?xml version="1.0" encoding="utf-8"?><rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" xmlns:media="http://search.yahoo.com/mrss/" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0"><channel><title>Intersoft Community - WebGrid Enterprise - WebGrid Exporting All Data Regardless Of Grid Rows Loaded</title><link>http://www.intersoftsolutions.com/Community/WebGrid/WebGrid-Exporting-All-Data-Regardless-Of-Grid-Rows-Loaded/</link><description /><generator>http://www.intersoftsolutions.com</generator><language>en</language><copyright>Copyright 2002 - 2015 Intersoft Solutions Corp. All rights reserved.</copyright><ttl>60</ttl><item><title>WebGrid Exporting All Data Regardless Of Grid Rows Loaded</title><link>http://www.intersoftsolutions.com/Community/WebGrid/WebGrid-Exporting-All-Data-Regardless-Of-Grid-Rows-Loaded/</link><pubDate>Wed, 05 May 2010 10:23:41 GMT</pubDate><dc:creator>Glayaar</dc:creator><description>&lt;p&gt;It seems VirtualPageSize property will be used to determine the number of rows to be exported under certain scenario, as mentioned in this &lt;a href="../GroupBy-does-not-work-using-ISLinqDataSource/" target="_blank"&gt;thread&lt;/a&gt;.&lt;/p&gt;&lt;p&gt;A bug report has been submitted for this issue.&lt;/p&gt;</description></item><item><title>WebGrid Exporting All Data Regardless Of Grid Rows Loaded</title><link>http://www.intersoftsolutions.com/Community/WebGrid/WebGrid-Exporting-All-Data-Regardless-Of-Grid-Rows-Loaded/</link><pubDate>Wed, 05 May 2010 08:33:04 GMT</pubDate><dc:creator>PRISMAY</dc:creator><description>&lt;p&gt;Thanks Julia.  Our current settings for PagingMode is VirtualLoad and LargeData &amp; ExportCurrentPageView for VirtualLoadMode and PagingExportMode respectively.  I also tried ExportAllData but that didn't work, but it's because we're not using VirtualLoad.&lt;/p&gt;
&lt;p&gt;I also tried setting the VirtualLoadMode to Default per the paragraph from the documentation which seems to not be correct:&lt;/p&gt;
&lt;p&gt;&lt;em&gt;Using LargeData option in the VirtualLoadMode property restricts the users to export ALL the data. Only a certain batch of data which has been retrieved by users, will be exported to the medium. Therefore, in order to export ALL data, the VirtualLoadMode property needs to be configured to Default option temporarily and invokes the RebindDataSource() method.&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;This is how I make the change inside the OnExport handler that I've overridden:&lt;/p&gt;&lt;pre&gt;ISNet.WebUI.WebGrid.VirtualLoadMode enumTempMode = this.LayoutSettings.VirtualLoadMode;
this.LayoutSettings.VirtualLoadMode = ISNet.WebUI.WebGrid.VirtualLoadMode.Default;

bool bRet = base.OnExport(table,dataSource,reportInfo,ref outputFile);

// now set back
this.LayoutSettings.VirtualLoadMode = enumTempMode;

&lt;/pre&gt;

&lt;p&gt;None of the changes worked.  The only way I'm able to export all records is to set the VirtualPageSize to the all rows in our DataSource and then set it back after the export.&lt;br /&gt;&lt;/p&gt;</description></item><item><title>WebGrid Exporting All Data Regardless Of Grid Rows Loaded</title><link>http://www.intersoftsolutions.com/Community/WebGrid/WebGrid-Exporting-All-Data-Regardless-Of-Grid-Rows-Loaded/</link><pubDate>Tue, 04 May 2010 23:48:05 GMT</pubDate><dc:creator>julia</dc:creator><description>&lt;p&gt;Hi Yousif,&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;May I know your setting for PagingMode property? If you set it to ClassicPaging, you need to set PagingExportMode to &lt;strong&gt;ExportAllData&lt;/strong&gt;. But if you set it to VirtualPage with default VirtualLoadMode, all record will be exported automatically.&lt;/p&gt;
&lt;p&gt;Please notes that if you set VirtualLoadMode to custom the export data that will be exported is depend on number set in VirtualPageSize.&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Julia&lt;/p&gt;</description></item><item><title>WebGrid Exporting All Data Regardless Of Grid Rows Loaded</title><link>http://www.intersoftsolutions.com/Community/WebGrid/WebGrid-Exporting-All-Data-Regardless-Of-Grid-Rows-Loaded/</link><pubDate>Tue, 04 May 2010 13:32:56 GMT</pubDate><dc:creator>PRISMAY</dc:creator><description>&lt;p&gt;We need to have the export feature export all rows regardless of how many rows the user currently has loaded in the grid.  So if the user is viewing 200 of 10,000 records and uses export, we want to export all 10,000 records.&lt;/p&gt;</description></item></channel></rss>