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

Streaming Datasource in Virtual-Mode

3 Answers 72 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Tommy
Top achievements
Rank 1
Tommy asked on 16 Jul 2009, 12:08 PM
Hi,

In a thread I working through our very slow Database (No its not SQL) and fill the Data in a DataTable. When a new row gets added to that DataTable I want to add the new row to the RadGrid as well. I thought iIwould increase the Rows.Count poperty and read the Row Info out of the DataTable in the Controls CellValuenNeeded event. The problem is that I get always an unhandlet exception sonner or later. When i remove the Event, the Datatable gets loaded correctly in the background.

Am I doing something wrong or do I use the wrong approach? Even locking has not helped me out.

Hope you can help me here.

Thanks

3 Answers, 1 is accepted

Sort by
0
Victor
Telerik team
answered on 20 Jul 2009, 06:06 AM
Hi Tommy,

As you describe this problem, my conclusion is that it is a common multi-threading issue. From the information provided I can guess that the some times the code tries to read and write to the DataTable at the same time. Please provide the code of your CellValueNeeded event, the code with creates the thread and the code that the thread itself executes so that I may give a more precise answer. Also please provide the text that the exception displays.
I am looking forward to your reply.

Best wishes,
Victor
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Tommy
Top achievements
Rank 1
answered on 21 Jul 2009, 02:54 PM
The problem was in the Wrapper that reads from the Database Files. I've changed it now from streaming to paging and all works fine. My only question now is, can I let the user use the Filtering Row and handle the events manually as well as the event for sorting?
0
Victor
Telerik team
answered on 23 Jul 2009, 08:22 AM
Hi Tommy,

Please excuse me for not understanding your question. What do you need to do in the filtering and sorting events? Also what do you mean by let the user use the Filtering Row? I am looking forward to your reply.

Greetings,
Victor
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
GridView
Asked by
Tommy
Top achievements
Rank 1
Answers by
Victor
Telerik team
Tommy
Top achievements
Rank 1
Share this question
or