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

System.outofmemory exception while exporting telerik grid data.

1 Answer 190 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Jagadeeswararao
Top achievements
Rank 1
Jagadeeswararao asked on 11 Aug 2014, 09:57 AM
Hi,
  I have a small issue while exporting data to export i have 50k records in my grid, when i'm exporting to pdf getting System.OutOfmemory exception.
  Is there any way to resolve this issue.
  feel happy if solution like below.
 1) when its reaching to out of memory exception application should display a popup window by displaying message like 'there is no space in RAM ..bla..bla' or The size of the file exceeds to the current free size of the RAM.

Can someone plz help in this issue.

Thanks ,
Jagadeesh.

1 Answer, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 11 Aug 2014, 10:34 AM
Hi Jagadeeswararao,

We strongly recommend not to export large amounts of data since there is a chance to encounter an exception (Timeout or OutOfMemory) if more than one user tries to export the same data simultaneously. RadGrid is not suitable for such scenarios and therefore we suggest that you limit the number of columns and rows. Exporting large grids requires a lot of available memory on the server. In addition the performance (and the memory consumption) depends not only on items count but on the columns count too. So if you have a 50k grid with one or two BoundColumns you might be able to export it. But if
you have a large number of columns in the (especially if you have a hierarchy) then you might get exception even if the grid has 10k items. 
         I can suggest you either to consider decreasing the amount of data or export only the current page by setting the IgnorePaging option to 'false'.      

Thanks,
Princy
Tags
Grid
Asked by
Jagadeeswararao
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Share this question
or