RadGridView does not allow updates to source objects from non-ui thread

2 posts, 0 answers
  1. James
    James avatar
    4 posts
    Member since:
    Oct 2010

    Posted 17 Jul 2013 Link to this post

    Hello,

    I'm attempting to update a property of an object in a collection that is being shown by RadGridView. The update is being done by a background (non-UI) thread. Normally, this isn't a problem - the WPF binding takes care of shifting to the UI thread to update the control.

    However, RadGridView does not seem to follow this pattern.

    I've created an example project to illustrate. Currently, the RadGridView is commented out, and a DataGrid is showing the collection. If we click the button that updates the source objects property on a background thread, then it works fine.

    If we uncomment the RadGridView line (so we now have a datagrid and a radgridview showing the same collection), then updating the object property causes a "The calling thread cannot access this object because a different thread owns it" exception.

    Is it possible to get RadGridView to behave in the same way as DataGrid in this case?

    Thanks,
    James.

    [EDIT - I've realised I should submit a support ticket so I can attach the project, sorry]

  2. James
    James avatar
    4 posts
    Member since:
    Oct 2010

    Posted 17 Jul 2013 Link to this post

    Found that this was being caused by a bug in the latest release of telerik controls.

    I updated to the development build and it's fine now.
Back to Top