Hi Andrew,
Thanks for contacting Syncfusion support.
We created a sample and in this sample we set column type as checkbox used for selecting specific rows. Once we check a few rows and export to excel we did not face any exception in our sample.
Find the code example and sample:
@(Html.EJ().Grid<object>("FlatGrid")
.Datasource((IEnumerable<object>)ViewBag.datasource)
.AllowPaging()
.IsResponsive()
.ToolbarSettings(toolBar => toolBar.ShowToolbar().ToolbarItems(items =>
{
items.AddTool(ToolBarItems.ExcelExport);
items.AddTool(ToolBarItems.WordExport);
items.AddTool(ToolBarItems.PdfExport);
}))
.Columns(col =>
{
col.Type("checkbox").Width(50).Add();
col.Field("OrderID").HeaderText("Order ID").TextAlign(TextAlign.Right).Width(75).Add();
-----------------------
})
) |
To find out the root cause, we need the following details.
1. Share the code example of Grid and controller.
2. Have you mentioned field property for the checkbox column?
3. Share the screenshot and stackrace of an exception.
4. Essential Studio Version details.
5. If possible, replicate the issue in the attached sample.
Regards,
Prasanna Kumar N.S.V