We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.


Thread ID:





127670 Dec 1,2016 11:23 AM Dec 2,2016 07:28 AM JavaScript 1
Tags: ejPivotGrid
Asked On December 1, 2016 11:23 AM

Can someone explain the first parameter for the exportPivotGrid function for me please

Sastha Prathap Selvamoorthy [Syncfusion]
Replied On December 2, 2016 07:28 AM

Hi Damion,   
Thank you for looking Syncfusion products.   
The first parameter of the ExportPivotGrid is an “URL” link (link is either online hosted link or local hosted service file) which contains the code to export the PivotGrid. Please find the sample to export PivotGrid using the “ExportPivotGrid”.   
Note: In the Exporting sample, we have provided the export link as window.baseurl + "api/PivotGrid/Olap/ExcelExport” “. The “window.baseurl”  indicates the source link hosted to IIS server from the ejservice path.   
So, you can provide your local service file or online link to export the PivotGrid. Please refer to the below sample code example.   
Local Link:   
if (exportOption == "excel")   
Online Link:   
if (exportOption == "excel")   
Code contained in “../api/PivotGrid/Olap/ExcelExport” below:   
        public void ExcelExport()   
            PivotGridExcelExport pGrid = new PivotGridExcelExport();   
            string args = HttpContext.Current.Request.Form.GetValues(0)[0];   
            pGrid.ExportToExcel(string.Empty, args, HttpContext.Current.Response);   
Sastha Prathap S.  


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.