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

Browser Crash when resetting the ItemSource of a non Visible Grid

1 Answer 49 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Ludovic Gerbault
Top achievements
Rank 1
Ludovic Gerbault asked on 25 Jan 2010, 11:45 AM
I think there might be a bug, but I don't know if it's a Silverlight bug or a telerik bug.

Here's the scenario :

I have a RadTabControl with several RadTabItem (the number depends of the result of a webservice)

Each RadTabItem contains a UserControl set in Code Behind containing a RadGridView and a TextBox.
Each RadGridView has the same name.

Each UserControl has an instance of the Webservice declared in the constructor and calls the webservice to get the itemsource, then create a custom collection using lightweight datatable, and then creates and bind the columns (autogenerated false).

For each row loaded, I attache a RadContextMenu which content also depends of the WebService result.

The RowContextMenu allows to user to launch several functions of the database, to perform different tasks.
Most of those functions triggers a refresh of the grid (reload of the webservice data), recreation of the collection (but not the columns), then I set the itemsource to null, and set it again with the refreshed collection.

This process works only if the refresh action is launched from the very first RadTabItem, if it's being launched in any other item, the browser crashes unexpectedly, and the crash report says that there was a problem in coreclr.dll

I found a workaround by loading the new data during the selectionchanged event of the TabControl, and only reload the Current Item grid.

I think it might be linked to the rowvizualisation mechanism, or something similar.

I hope this can help you find if there actually is a bug somewhere.

1 Answer, 1 is accepted

Sort by
0
Vlad
Telerik team
answered on 28 Jan 2010, 01:17 PM
Hi,

Can you send us the application (via support ticket) where we can debug this?

Kind regards,
Vlad
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
GridView
Asked by
Ludovic Gerbault
Top achievements
Rank 1
Answers by
Vlad
Telerik team
Share this question
or