Example of Server Side Exporting in ASP.NET MVC Data Grid Control
This sample demonstrates the server-side exporting of the Grid, which allows you to export its data to the Excel, CSV and PDF formats using server-side actions. Use the toolbar buttons to export Grid data to desired format.
Server-side exporting is implemented by using the Syncfusion.EJ2.GridExport opens in a new tab library
In this demo, ExcelExport, CsvExport and PdfExport items are defined in the toolbar and for these toolbar items, we have defined actions in toolbarClick event to export the Grid data using the
serverExcelExport
opens in a new tab
serverCsvExport
opens in a new tab
and
serverPdfExport
opens in a new tab
methods.