﻿<?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 - How to export all records When WebGrid enable loadondemand</title><link>http://www.intersoftsolutions.com/Community/WebGrid/How-to-export-all-records-When-WebGrid-enable-loadondemand/</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>How to export all records When WebGrid enable loadondemand</title><link>http://www.intersoftsolutions.com/Community/WebGrid/How-to-export-all-records-When-WebGrid-enable-loadondemand/</link><pubDate>Fri, 22 Apr 2011 02:00:29 GMT</pubDate><dc:creator>gavin</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;     I click the "next page" to goto page #2, then export the data, but the excel file only contain #21-#40, 20 records.&lt;/p&gt;
&lt;p&gt;     How can I Export all data in this scenaio?&lt;/p&gt;
&lt;p&gt;      Thanks!&lt;/p&gt;</description></item><item><title>How to export all records When WebGrid enable loadondemand</title><link>http://www.intersoftsolutions.com/Community/WebGrid/How-to-export-all-records-When-WebGrid-enable-loadondemand/</link><pubDate>Wed, 20 Apr 2011 04:51:05 GMT</pubDate><dc:creator>yudi</dc:creator><description>&lt;p&gt;&lt;span style="font-family: 'segoe ui','sans-serif'; color: #1f497d; font-size: 9pt;"&gt;In custom paging scenario, it is the datasource control, in this case is ISDataSource, that determines the amount of rows that will be given to WebGrid. In a simple word, if page 1 is opened, ISDataSource will provide row #1 – row #20; and if last page is opened, ISDataSource will provide all rows.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family: 'segoe ui','sans-serif'; color: #1f497d; font-size: 9pt;"&gt;In order to get a clearer picture, please try to open first page and export the data. Next, open page #2 and export the data. Note that when page #2 is opened, the exported result will show rows from page #1 till page #2. Last, open last page and export the data.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family: 'segoe ui','sans-serif'; color: #1f497d; font-size: 9pt;"&gt;This is the default behavior of the custom paging scenario.&lt;/span&gt;&lt;/p&gt;</description></item><item><title>How to export all records When WebGrid enable loadondemand</title><link>http://www.intersoftsolutions.com/Community/WebGrid/How-to-export-all-records-When-WebGrid-enable-loadondemand/</link><pubDate>Tue, 19 Apr 2011 04:26:51 GMT</pubDate><dc:creator>gavin</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;     I set the property like this, but the issue is still exist.&lt;/p&gt;
&lt;p&gt;     &amp;lt;LayoutSettings PagingMode="ClassicPaging" PagingLoadMode="Custom" PagingSize="20" PagingDataRetrievalMode="ReturnPartialRows" AllowExport="Yes" PagingExportMode="ExportAllData"&amp;gt;&lt;br /&gt;            &amp;lt;/LayoutSettings&amp;gt;&lt;/p&gt;
&lt;p&gt;     The attchments is Code and Database.&lt;/p&gt;
&lt;p&gt;Help me please!&lt;/p&gt;
&lt;p&gt;Thanks!&lt;/p&gt;</description></item><item><title>How to export all records When WebGrid enable loadondemand</title><link>http://www.intersoftsolutions.com/Community/WebGrid/How-to-export-all-records-When-WebGrid-enable-loadondemand/</link><pubDate>Tue, 19 Apr 2011 03:31:12 GMT</pubDate><dc:creator>yudi</dc:creator><description>&lt;p&gt;&lt;span style="font-family: 'segoe ui', 'sans-serif'; color: #1f497d; font-size: 9pt"&gt;Custom paging is also known as load on demand technique. Custom paging can be implemented using ObjectDataSource or ISDataSource. In general, custom paging implementation requires three important steps:&lt;/span&gt;&lt;/p&gt;&lt;span style="font-family: 'segoe ui', 'sans-serif'; color: #1f497d; font-size: 9pt"&gt;&lt;ol&gt;
&lt;li&gt;Set &lt;i style="mso-bidi-font-style: normal"&gt;EnablePaging&lt;/i&gt; of the data sourcecontrol to True.&lt;/li&gt;
&lt;li&gt;Provides a method for &lt;i style="mso-bidi-font-style: normal"&gt;Select&lt;/i&gt;. This method requires three parameters: startRow, maximumRows, and sortExpression.&lt;/li&gt;
&lt;li&gt;Provides a method for &lt;i style="mso-bidi-font-style: normal"&gt;SelectCount&lt;/i&gt;.&lt;/li&gt;&lt;/ol&gt;&lt;/span&gt;
&lt;p&gt;&lt;span style="font-family: 'segoe ui', 'sans-serif'; color: #1f497d; font-size: 9pt"&gt;The heart of the custom paging is to provide custom logic for retrieving rows according to the current view of the WebGrid. This done via custom codes in the Select method. For more detail information, please check on &lt;a href="http://support.intersoftpt.com/Docs/WebGrid/7.0.7200/Custom%20Paging.html"&gt;&lt;span style="color: #0000ff"&gt;this&lt;/span&gt;&lt;/a&gt; page.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family: 'segoe ui', 'sans-serif'; color: #1f497d; font-size: 9pt"&gt;By default, the classic paging will use automatic data retrieval mode. In automatic mode, WebGrid determines the total datasource rows based on the given datasource and display the current page appropriately. When uses automatic data retrieval, by setting the value of “PagingExportMode” property to “ExportAllData” will cause WebGrid to export all data (not current page only).&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family: 'segoe ui', 'sans-serif'; color: #1f497d; font-size: 9pt"&gt;When uses custom paging, it is the datasource control that determines the amount of rows that will be given to WebGrid, thus when exporting on the first load will only export first page.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family: 'segoe ui', 'sans-serif'; color: #1f497d; font-size: 9pt"&gt;Hope this help.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family: 'segoe ui', 'sans-serif'; color: #1f497d; font-size: 9pt"&gt;*Please try to move the last page after the grid loaded; and then try to export the rows. It will export all data, since the datasource control has provides entire rows to WebGrid.&lt;/span&gt;&lt;/p&gt;</description></item><item><title>How to export all records When WebGrid enable loadondemand</title><link>http://www.intersoftsolutions.com/Community/WebGrid/How-to-export-all-records-When-WebGrid-enable-loadondemand/</link><pubDate>Mon, 18 Apr 2011 22:51:02 GMT</pubDate><dc:creator>lili</dc:creator><description>&lt;p&gt;Hi Xu Guochun,&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;To export all records in WebGrid, just simply set the property PagingExportMode="ExportAllData". I've tried to make a sample based on your sample, but I couldn't replicate your issue. Could you give me a simple runable sample so that I could check it on my end?&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Lili Khiung&lt;/p&gt;</description></item><item><title>How to export all records When WebGrid enable loadondemand</title><link>http://www.intersoftsolutions.com/Community/WebGrid/How-to-export-all-records-When-WebGrid-enable-loadondemand/</link><pubDate>Mon, 18 Apr 2011 04:32:01 GMT</pubDate><dc:creator>gavin</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;    I use WebGrid7 and ISDataSource.&lt;/p&gt;&lt;pre&gt;&amp;lt;ISWebGrid:WebGrid ID="GridHandle" runat="server" Width="99%" DefaultStyleMode="Win7"
        UseDefaultStyle="True" DataSourceID="ISDataSource1" DataMember="DB_Messages_Center"
        OnPrepareExportExecute="WebGrid1_PrepareExportExecute" Height="200px" OnInitializeRow="WebGrid1_InitializeRow"
        OnExport="WebGrid1_Export"&amp;gt;
        &amp;lt;LayoutSettings PagingMode="ClassicPaging" PagingLoadMode="Custom" PagingSize="50" AllowFilter="Yes" PagingStyleUI="FirstPrevNextLast"
            AllowExport="Yes" PagingExportMode="ExportAllData"&amp;gt;
            &amp;lt;ClientSideEvents OnInitialize="ISWebGrid_OnInitialize_Common" /&amp;gt;
        &amp;lt;/LayoutSettings&amp;gt;
        &amp;lt;RootTable DataKeyField="MessageItemGuid"&amp;gt;
            &amp;lt;Columns&amp;gt;
 &amp;lt;/Columns&amp;gt;
        &amp;lt;/RootTable&amp;gt;
    &amp;lt;/ISWebGrid:WebGrid&amp;gt;
    &amp;lt;ISDataSource:ISDataSource ID="ISDataSource1" runat="server" SchemaType="CustomObject"&amp;gt;
        &amp;lt;Tables&amp;gt;
            &amp;lt;ISDataSource:ISDataSourceTable SelectMethod="WaitHandle_PageView_BanLi" EnablePaging="true" SelectCountMethod="WaitHandle_Count_BanLi"
                TableName="DB_Messages_Center" TypeName="Epoint.Messages.Bizlogic.DB_Messages_Center"&amp;gt;
                &amp;lt;SelectParameters&amp;gt;
                    &amp;lt;asp:ControlParameter ControlID="DateFromTo1" Name="DateFromTo" PropertyName="FromValue"
                        Type="String" /&amp;gt;
                    &amp;lt;asp:ControlParameter ControlID="DateFromTo1" Name="DateTo" PropertyName="ToValue"
                        Type="String" /&amp;gt;
                    &amp;lt;asp:ControlParameter ControlID="txtTitle" Name="txtTitle" PropertyName="Text" Type="String" /&amp;gt;
                    &amp;lt;asp:ControlParameter ControlID="txtArchiveNo" Name="ArchiveNo" PropertyName="Text"
                        Type="String" /&amp;gt;
                    &amp;lt;asp:Parameter Name="TableName" DefaultValue="Messages_Center_Histroy" Type="String" /&amp;gt;
                    &amp;lt;asp:Parameter Name="IsDel" DefaultValue="0" Type="Int32" /&amp;gt;
                &amp;lt;/SelectParameters&amp;gt;
            &amp;lt;/ISDataSource:ISDataSourceTable&amp;gt;
        &amp;lt;/Tables&amp;gt;
    &amp;lt;/ISDataSource:ISDataSource&amp;gt;&lt;/pre&gt;
&lt;p&gt;When I export WebGrid, It only can export the current page, How to export all records?&lt;/p&gt;
&lt;p&gt;Thanks!&lt;/p&gt;</description></item></channel></rss>