Hello Marcus,
You can use the following approach to achieve this requirement:
<telerik:GridCheckBoxColumn ... DataField="Active">
<MasterTableView ... DataKeyNames="OrderID,Active">
protected void RadGrid1_PreRender(object sender, EventArgs e)
{
if (RadGrid1.IsExporting)
{
foreach (GridDataItem item in RadGrid1.Items)
{
foreach (GridCheckBoxColumn col in RadGrid1.MasterTableView
.RenderColumns.OfType<GridCheckBoxColumn>())
{
TableCell cell = item[col.UniqueName];
cell.Text = item.GetDataKeyValue(col.DataField).ToString();
}
}
}
I hope this will prove helpful.
Regards,
Eyup
Progress Telerik
Get
quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers.
Learn More.