Issue related to Export Grid content to Excel Sheet

hello,
i have try to export grid content in Excel.but i can't do that because of some Actionresult error , i m unable to get it what is exactly that error and root of error.
i have also attach my sample application please go through it(go to "GridDemo" link in application)



SheduleDemo_ed7028ec.rar

1 Reply

ES Eswari S Syncfusion Team September 19, 2011 06:22 AM UTC


Hi Sivakumar,

Thank you for using Syncfusion products.

We suggest you to use the Mapper function for Exporting. Please refer to the following code snippets:

@{Html.Syncfusion().Grid("InboxGrid")

.ToolBar(toolbar =>
{
toolbar.Add(GridToolBarItems.ExcelExport, "Excel Export");
})

.Mappers(map =>
{
map.ExportExcelAction("ExportToExcel);

}).Render();
}


For your convenience, we have modified the sample and the same can be downloaded from the following link:


SheduleDemo1116223430.zip

Also, we would request you to check the following online sample and UG link:

Online sample :

http://mvc.syncfusion.com/sfmvcsamplebrowser/9.3.0.61/Grid_MVC/Samples/4.0/Exporting/GridExport

UG:

http://help.syncfusion.com/ug_93/User%20Interface/ASP.NET%20MVC/Grid/default.htm?turl=Documents%2Fusinggridbuilder3.htm

Please try this and let us know if you need any further assistance.

Regards,
Eswari.S




Loader.
Up arrow icon