How to export all records When WebGrid enable loadondemand

5 replies. Last post: April 22, 2011 2:00 AM by xu guochun
Tags :
  • (None)
  • New Discussion
  • New Question
  • New Product Feedback
xu guochunMember

Hi,

    I use WebGrid7 and ISDataSource.

<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">
        <LayoutSettings PagingMode="ClassicPaging" PagingLoadMode="Custom" PagingSize="50" AllowFilter="Yes" PagingStyleUI="FirstPrevNextLast"
            AllowExport="Yes" PagingExportMode="ExportAllData">
            <ClientSideEvents OnInitialize="ISWebGrid_OnInitialize_Common" />
        </LayoutSettings>
        <RootTable DataKeyField="MessageItemGuid">
            <Columns>
 </Columns>
        </RootTable>
    </ISWebGrid:WebGrid>
    <ISDataSource:ISDataSource ID="ISDataSource1" runat="server" SchemaType="CustomObject">
        <Tables>
            <ISDataSource:ISDataSourceTable SelectMethod="WaitHandle_PageView_BanLi" EnablePaging="true" SelectCountMethod="WaitHandle_Count_BanLi"
                TableName="DB_Messages_Center" TypeName="Epoint.Messages.Bizlogic.DB_Messages_Center">
                <SelectParameters>
                    <asp:ControlParameter ControlID="DateFromTo1" Name="DateFromTo" PropertyName="FromValue"
                        Type="String" />
                    <asp:ControlParameter ControlID="DateFromTo1" Name="DateTo" PropertyName="ToValue"
                        Type="String" />
                    <asp:ControlParameter ControlID="txtTitle" Name="txtTitle" PropertyName="Text" Type="String" />
                    <asp:ControlParameter ControlID="txtArchiveNo" Name="ArchiveNo" PropertyName="Text"
                        Type="String" />
                    <asp:Parameter Name="TableName" DefaultValue="Messages_Center_Histroy" Type="String" />
                    <asp:Parameter Name="IsDel" DefaultValue="0" Type="Int32" />
                </SelectParameters>
            </ISDataSource:ISDataSourceTable>
        </Tables>
    </ISDataSource:ISDataSource>

When I export WebGrid, It only can export the current page, How to export all records?

Thanks!

All times are GMT -5. The time now is 8:50 AM.
Previous Next