Hi,
I use an Excel Export from a RadGrid.
I would like to replace an image by a text.
This code worked fine before.
But it doesn't work any more since the last update or the previous one.is it the good way to do this ?
Many thanks for your help,
Bernard
I use an Excel Export from a RadGrid.
I would like to replace an image by a text.
This code worked fine before.
But it doesn't work any more since the last update or the previous one.is it the good way to do this ?
Many thanks for your help,
Bernard
...
aRadGrid.ExportSettings.Csv.ColumnDelimiter = GridCsvDelimiter.Semicolon;
aRadGrid.ExportSettings.FileName = aFileName;
aRadGrid.ExportSettings.HideStructureColumns =
true
;
aRadGrid.ExportSettings.ExportOnlyData =
true
;
aRadGrid.ExportSettings.IgnorePaging =
true
;
aRadGrid.ExportSettings.OpenInNewWindow =
true
;
private
void
Export()
{
((GridClientSelectColumn)aRadGrid.MasterTableView.GetColumn(XarcT.UN_S)).Visible =
false
;
foreach
(GridDataItem item
in
aRadGrid.Items)
{
if
(item.ItemType == GridItemType.AlternatingItem)
{
item.BackColor = Color.LightGray;
};
TableCell cell = (TableCell)item[XarcT.UN_L];
bool
aBool = (cell.Text == @
"True"
);
cell = (TableCell)item[XarcT.UN_Limg];
cell.Text = (aBool ? @
"L"
:
null
);
};
if
(dataContainer.xarcUaLstPrm.currentAction == XarcUaLstPrm.Action.Excel)
{
aRadGrid.MasterTableView.ExportToExcel();
}
else
{
aRadGrid.MasterTableView.ExportToCSV();
};
}