This is a migrated thread and some comments may be shown as answers.

Exporting groups semicolon

1 Answer 48 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Terry Hoiness
Top achievements
Rank 1
Terry Hoiness asked on 26 Oct 2010, 05:52 PM
Why, when exporting groups to Excel XML, does Telerik attach a semicolon to the end of the group name, and how do I remove this?

1 Answer, 1 is accepted

Sort by
0
Daniel
Telerik team
answered on 01 Nov 2010, 02:35 PM
Hello Terry,

Indeed, this is not expected behavior. Please use the following workaround until we address the issue:
protected void RadGrid1_ExcelMLExportRowCreated(object sender, GridExportExcelMLRowCreatedArgs e)
{
    if (e.RowType == GridExportExcelMLRowType.GroupByHeaderRow)
    {
        CellElement cell = e.Row.Cells[0];
        string cellText = cell.Data.DataItem.ToString();
        cellText = cellText.Substring(0, cellText.Length - 1);
        cell.Data.DataItem = cellText;
    }
}

I updated your Telerik points as a sign of gratitude for the bug report.

Best regards,
Daniel
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
Grid
Asked by
Terry Hoiness
Top achievements
Rank 1
Answers by
Daniel
Telerik team
Share this question
or