Exception: 'System.OutOfMemoryException' was thrown when there is 2000+ data need to be bind in RadComboBox inside RadGrid

Priyanka

I have a RadGrid and a RadComboBox outside of RadGrid (say comboOutside), inside a Web Form.
Inside RadGrid, there is 1 more RadComboBox (say comboRadGrid). On selection of items from comboOutside, comboRadGrid is bind i.e., If item 'Company' is selected from comboOutside, then all the company names will be bind in comboRadGrid; and then user select specific company from comboRadGrid and records are added in RadGrid.

For all items, functionality is working fine but I am facing issue in binding of a specific comboOutside item. i.e., When I choose a specific item from comboOutside, say I have 100 items inside comboOutside, and when I select 35th items from it, then comboRadGrid always throw this error while binding records for 35th item (since 35th item has 2000+ records to bind in comboRadGrid)
Error is attached below:

Funcitonality is working fine for all the items except 1 specific item of RadComboBox. I don't understand why. Due to this I am unable to add records in RadGrid
Below is my code-

<CommandItemSettingsAddNewRecordText="Add new record"RefreshText="Refresh"></CommandItemSettings>

</mastertableview>

</telerik:RadGrid>

Please let me know how to resolve. What shall I change in my code.

I have to populate/bind the RadComboBox (comboRadGrid) which is inside of RadGrid, based on the Items that are outside of RadGrid of RadComboBox (comboOutside). Please note that I am very new in Telerik and asp.net Please let me know how to modify my comboRadGrid binding code (based on outside Combo List items) so that this issue do not occur again ? Please reply​

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 Feedback Portal
and vote to affect the priority of the items

Priyanka

I would like to again highlight the issue I am facing. There are 2 RadComboBox in my web page. 1st RadComboBox (say ComboOutside) is outside of RadGrid and 2nd RadComboBox (say ComboInGrid) is inside the RadGrid in EditItemTemplate.

I am binding the "ComboInGrid" based on the items selected from "ComboOutside" i.e., If suppose ComboOutside has following items: Countr​ies, Companies, Employees, etc. and suppose if user has selected 'Companies' item from it, then ComboInGrid will bind all the company names.

Sometimes ComboInGrid has 200 items and sometimes 20,000+ items based on item selection from ComboOutside.

Now, when there are 20,000+ records to bind in ComboInGrid Radcombobox, it takes lot of time to load and then shows the attached errors (mostly shows: Error occurred during a cryptographic operation. error), without loading the records in ComboInGrid ComboBox.

I tried to search many articles based on my issue then I got to know that Load On Demand mechanism works in this case.

For this, I tried to follow this article: http://docs.telerik.com/devtools/aspnet-ajax/controls/combobox/troubleshooting/optimizing-the-combobox

But since I have to bind the RadComboBox which is inside EditItemTemplate of RadGrid, so I am unable to implement it using above link. I want same functionality which is described here: http://demos.telerik.com/aspnet-ajax/combobox/examples/populatingwithdata/autocompletesql/defaultcs.aspx (server side) ,but inside RadGrid's RadComboBox.

Please Note that I am very new in Telerik and if possible please provide me the sample code so that my issue get resolved and I am able to get the desired result for 20,000+ records to bind in RadcomboBox without any exception.

Priyanka

1) when I click on Edit/Update image button to update the RadGrid records, nothing happens i.e., update panel does not show up.

2) I am using Load On Demand approach in RadComboBox. I want to enable search functionality in RadCombo for all the records not for ItemsPerRequest i.e., If there are 20,000+ records showing in RadComboBox in which ItemsPerRequest=50 Items, so search is done among 50 items not among 20,000+ records. Which is not accepted by user.

Eyup

To greatly improve the performance of your configuration, please enable the AllowPaging property of the grid. As for editing grid with LoadOnDemand combobox, I am sending a sample RadGrid web site to demonstrate a basic implementation.

Regards,
Eyup
Telerik

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 Feedback Portal
and vote to affect the priority of the items

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 Feedback Portal
and vote to affect the priority of the items

Progress, Telerik, and certain product names used herein are trademarks or registered trademarks of Progress Software Corporation and/or one of its subsidiaries or affiliates in the U.S. and/or other countries. See Trademarks or appropriate markings.