Binding ItemsSource to ObservableCollection more than once

4 posts, 2 answers
  1. Johannes
    Johannes avatar
    66 posts
    Member since:
    Dec 2012

    Posted 28 Feb 2014 Link to this post

    I'm using RadDataForm for the first time and to mr it seems there's an uncommon behavior. I've bound MyRadDataForm.ItemsSource to a property called 'UserList' which is of type 'ObservableCollection<UserViewModel>'. When I load users from database and add them to the ObservableCollection, then UI/RadDataForm gets updated via INotifiyPropertyChanged.

    Now I want to refresh the displayed data so I clear the collection (UserList.Clear()), get the users from database again and then re-add those users to the collection (UserList.AddRange(usersFromDatabase). The problem is my UI doesn't get updated anymore. It seems that RadDataForm is only updating one time.
  2. Answer
    Dimitrina
    Admin
    Dimitrina avatar
    3769 posts

    Posted 05 Mar 2014 Link to this post

    Hi,

    I have tested the described scenario and I was able to reproduce the issue. I have logged it as a bug into our system.

    Regards,
    Didie
    Telerik

    DevCraft Q1'14 is here! Join the free online conference to see how this release solves your top-5 .NET challenges. Reserve your seat now!

  3. UI for WPF is Visual Studio 2017 Ready
  4. Johannes
    Johannes avatar
    66 posts
    Member since:
    Dec 2012

    Posted 10 Mar 2014 in reply to Dimitrina Link to this post

    Thanks for your reply. Can you show me a link to your bug tracking system or how will I know when this is fixed? I need the refreshable RadDataForm in my current project.
  5. Answer
    Dimitrina
    Admin
    Dimitrina avatar
    3769 posts

    Posted 10 Mar 2014 Link to this post

    Hi,

    You can track the progress of the issue in our Feedback portal here:
    Changes on the ItemsSource Collection are not reflected in the UI.

    Regards,
    Didie
    Telerik

    DevCraft Q1'14 is here! Watch the online conference to see how this release solves your top-5 .NET challenges. Watch on demand now.

Back to Top