Completed
Last Updated: 12 Jun 2020 16:04 by ADMIN
Release R2 2020 SP1
Deasun
Created on: 10 Jun 2020 14:17
Category: GridView
Type: Bug Report
0
RadGridView: exception when the grid has a row higher that 600 and the grid is exported
When the grid has a row higher that 600 and the grid is exported an exception is thrown: "rowHeight should be greater or equal than 0 and less or equal than 600."
1 comment
ADMIN
Nadya | Tech Support Engineer
Posted on: 10 Jun 2020 14:48

Hi Deasun,

To workaround this plese refer to the following code snippet:

class MySpreadExportRenderer : SpreadExportRenderer
{
    public override void SetWorksheetRowHeight(int rowIndex, int rowHeight, bool isCustom)
    {
        if (rowHeight > SpreadsheetDefaultValues.MaxRowHeight)
        {
            rowHeight = (int)SpreadsheetDefaultValues.MaxRowHeight;
        }
        base.SetWorksheetRowHeight(rowIndex, rowHeight, isCustom);
    }
}

 

Regards,
Nadya
Progress Telerik

Progress is here for your business, like always. Read more about the measures we are taking to ensure business continuity and help fight the COVID-19 pandemic.
Our thoughts here at Progress are with those affected by the outbreak.