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

Exception of type 'System.OutOfMemoryException' was thrown.

3 Answers 157 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Pinkey
Top achievements
Rank 1
Pinkey asked on 23 Apr 2010, 09:43 AM
Hi,

   I am using RadGrid for displaying the result I get from my search query. There are some conditions where I get result of about 25,000 or more rows. At this time I get the error as  "Exception of type 'System.OutOfMemoryException' was thrown."

   Please do suggest me how I can avoid this error and display my result perfectly. Is there any way to resolve this, its very urgent.

Thanks,

Pinkey

3 Answers, 1 is accepted

Sort by
0
Pavlina
Telerik team
answered on 23 Apr 2010, 12:50 PM
Hi Pinkey,

Do you have paging for this grid? I suggest that you take a look at the following blog post that clarifies the issue:

http://stevenharman.net/blog/archive/2008/04/29/hacking-visual-studio-to-use-more-than-2gigabytes-of-memory.aspx

Best wishes,
Pavlina
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.
0
Pinkey
Top achievements
Rank 1
answered on 23 Apr 2010, 01:36 PM
Hi Pavlina,

               I have done paging also and even if I get more than 5000 records, it displays the same error. Is there any limitations for the RadGrid for the no. of record.

               The only solution I am currently providing is to check the no. of records, if it is more than 5000 then I display only 5000 records only and prompts the user about this limitation.

               Please let me know if it is Rad grid's limitation?

Thanks,
Pinkey
0
Pavlina
Telerik team
answered on 28 Apr 2010, 03:02 PM
Hello Pinkey,

If you need to show a very large set of records, then the recommended approach is to use virtual scrolling :

http://demos.telerik.com/aspnet-ajax/grid/examples/client/virtualscrollpaging/defaultcs.aspx

All the best,
Pavlina
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
Pinkey
Top achievements
Rank 1
Answers by
Pavlina
Telerik team
Pinkey
Top achievements
Rank 1
Share this question
or