Problem with Binding and background worker

4 posts, 0 answers
  1. Davide
    Davide avatar
    2 posts
    Member since:
    Apr 2013

    Posted 15 Apr 2013 Link to this post


    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
  2. Rossen Hristov
    Admin
    Rossen Hristov avatar
    2478 posts

    Posted 15 Apr 2013 Link to this post

    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.

  3. UI for WPF is Visual Studio 2017 Ready
  4. Davide
    Davide avatar
    2 posts
    Member since:
    Apr 2013

    Posted 15 Apr 2013 Link to this post

    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
  5. Pavel R. Pavlov
    Admin
    Pavel R. Pavlov avatar
    1183 posts

    Posted 18 Apr 2013 Link to this post

    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.

Back to Top