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

Problem with Binding and background worker

3 Answers 201 Views
Buttons
This is a migrated thread and some comments may be shown as answers.
Davide
Top achievements
Rank 1
Davide asked on 15 Apr 2013, 02:30 PM

Hello everyone, I've done recently the upgrade from WPF Q2 2012 to Q1 2013 and I've a strange problem with RadGridView.

In my project I've created an extension of Windows context menu, adding my custom options, and using one of these option a show a WPF Window that contained a RadGridView.
This Windows accepts some criteria to perform a search and its results is displayed into RadGridView. To avoid Windows freeze I've done a BackgroundWorker that call the backend WCF and after that update RadGridView.

In particular I've used MVVM pattern and before start BackgroundWorker I've used a RadBusyIndicator to show that current Window is busy during search operation.
With WPF Q2 2012 all works fine and, after search, RadGridView is updated correctly with operation results but when I upgrade my project to Q1 2013 I've the following exception when I try update RadGridView :
"The calling thread cannot access this object because a different thread owns it".

I try to search in this forum and I didn't find any idea to solve it, but in the release notes of Q1 2013 RadGridView I read this :
BUGFIX : "Support for source collection changes from a thread that is different from the UI thread".

Could it somehow involve with my problem?

Thanks in advance, Regards
Davide

3 Answers, 1 is accepted

Sort by
0
Rossen Hristov
Telerik team
answered on 15 Apr 2013, 02:41 PM
Hi,

We introduced a similar bug recently but already fixed it. Can you please try with our Latest Internal Build version to see whether it resolves the problem? If not, can you send us a project to reproduce the issue?

All the best,
Rossen Hristov
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

0
Davide
Top achievements
Rank 1
answered on 15 Apr 2013, 04:04 PM
Hello! I've downloaded the latest internal version (DLL version 2013.1.415.40) but now I've a problem with my Windows.

I simply replaced my list of Telerik Dll (Q1 2013) with internal version dlls but now my Windows are corrupted (for example not display a simple RadButton with Windows8 like style theme) but when I compile the project there is no errors. These are the dlls that I used :
  • Telerik.Windows.Controls
  • Telerik.Windows.Controls.Gridview
  • Telerik.Windows.Controls.Input
  • Telerik.Windows.Controls.Navigation
  • Telerik.Windows.Data

Is there any other operation that must perform to complete the update to latest internal version?

Thanks, Regards
Davide
0
Pavel R. Pavlov
Telerik team
answered on 18 Apr 2013, 12:38 PM
Hi Davide,

Can you please clarify what you mean when you say "my Windows are corrupted". How they used to look like? How they look now? Can you please try to reproduce this issue in a separate project and send it over so we will be able to reproduce it and further investigate it.

Regarding your question, basically you have only to change the dlls. In order to make sure that they are properly changed you can close all XAML files and then clean the solution and rebuild it.

All the best,
Pavel R. Pavlov
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Tags
Buttons
Asked by
Davide
Top achievements
Rank 1
Answers by
Rossen Hristov
Telerik team
Davide
Top achievements
Rank 1
Pavel R. Pavlov
Telerik team
Share this question
or