in
Forums
Blogs
Files
Devexpress.Com
Client Center
Support Center
DevExpress Channel

ASPxPivotGridExporter not showing up

Last post 9/2/2008 4:31 AM by Ivan N (Developer Express). 3 replies.
Page 1 of 1 (4 items)
Sort Posts:
Previous Next
  • 6/4/2008 3:29 PM

    ASPxPivotGridExporter not showing up

    I've been trying to use the ASPxPivotGridExporter with the ASPxPivotGrid.  I set the properties as they appear on the Devex site (including the visible property, which does not show up in the intellisense), but no exporter control appears.  My question is:  Is the exporter control supposed to be an actual user control, or do I have to write the code and add the text boxes and buttons to make it work?  Thanks.

  • 6/13/2008 12:28 PM In reply to

    Re: ASPxPivotGridExporter not showing up

    Answer

    In answer to your question, as far as I understand, you do have to add text and buttons that trigger events to call code that uses the exporter control.  In our application, we used the ASPxGridViewExporter and added a div tag with text and buttons (See below). 

    I am also currently in the process of adding a Pivot Grid and the ASPxPivotGridExporter.  I reused the same div tag and buttons, but I put logic in the ExportResults method to check and see which grid is in use so that I use the correct exporter.  The only problem is that something is happening that causes the pivot grid to lose all of its data right before the export takes place.  It exports an empty pivot grid.  So I am very interested in any solution that you have found or will find.

    Alan

                <div id="exportOptions_grid" class="exportOptions">
                    Export to:&nbsp;
                    <asp:LinkButton ID="lbtnExport_xls" runat="server" CssClass="button_enabled"
                        onclick="ExportResults">XLS</asp:LinkButton>&nbsp;
                    <asp:LinkButton ID="lbtnExport_pdf" runat="server" CssClass="button_enabled"
                        onclick="ExportResults">PDF</asp:LinkButton>&nbsp;
                    <asp:LinkButton ID="lbtnExport_csv" runat="server" CssClass="button_enabled"
                        onclick="ExportResults">CSV</asp:LinkButton>&nbsp;
                    <asp:LinkButton ID="lbtnExport_rtf" runat="server" CssClass="button_enabled"
                        onclick="ExportResults">RTF</asp:LinkButton>
                </div>

     

  • 8/7/2008 2:53 PM In reply to

    Re: ASPxPivotGridExporter not showing up

     Hope this helps

     

     

     

     

     

     

     

    <div id="ExportExcel">

     

     

    <dxpgw:ASPxPivotGridExporter ID="ASPxPivotGridExporter1" runat="server" ASPxPivotGridID="ASPxPivotGrid1">

     

     

    </dxpgw:ASPxPivotGridExporter>

     

     

    <dxe:aspxbutton id="BtnExcel" runat="server" text="Export to Excel"></dxe:aspxbutton>

     

     

    </div>

    Code behind:

    Imports

    DevExpress.Web.ASPxPivotGrid

    Imports

    DevExpress.Web.ASPxEditors

     

     

     

     

    Protected Sub BtnExcel_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles BtnExcel.Click

    ASPxPivotGridExporter1.ExportToXls(

    "C:\PivotData.xls")

     

    End

    Sub

  • 9/2/2008 4:31 AM In reply to

    Re: ASPxPivotGridExporter not showing up

    Hello Alan,

    The behavior you`ve described is incorrect. Please create an issue in our support center and provide us with a sample application that reproduces the problem. We will try to do our best to solve the problem.

    Thanks,
    R&D, .NET Team
    Ivan

    PS. If you wish to receive direct assistance from our Support Team, use
    Support Center at http://www.devexpress.com/Support/Center
Page 1 of 1 (4 items)
Copyright © 1998-2008 Developer Express Inc.
ALL RIGHTS RESERVED