Hi Jaime,
Thanks for contacting Syncfusion support.
We checked in our sample and when we export to excel with more than 4000 records we did not face any maximum request length exceeded error in our sample. For your convenience we attached a sample and please download the sample from the following link
In your code example we found that you have deserialize the values to get the data. We will face the mentioned issue when we deserialize the more than 5000 records in the Grid. To avoid this issue we need to divide the rows into two or three and serialize the values. After we serialize the values we need to combine the whole data into a list.
Find the code example:
for (var i = 0; i < rowPartition; i++)
{
string griddata = serializer.Serialize(rows.Skip(i * 2000).Take(2000));
var data = serializer.Deserialize<List<Summary>>(griddata);
Data.AddRange(data);
}
ViewBag.datasource = Data;
|
Regards,
Prasanna Kumar N.S.V