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

Binding ItemsSource to ObservableCollection more than once

3 Answers 32 Views
DataForm
This is a migrated thread and some comments may be shown as answers.
Johannes
Top achievements
Rank 1
Johannes asked on 28 Feb 2014, 05:15 PM
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.

3 Answers, 1 is accepted

Sort by
0
Accepted
Dimitrina
Telerik team
answered on 05 Mar 2014, 11:43 AM
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!

0
Johannes
Top achievements
Rank 1
answered on 10 Mar 2014, 08:15 AM
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.
0
Accepted
Dimitrina
Telerik team
answered on 10 Mar 2014, 08:30 AM
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.

Tags
DataForm
Asked by
Johannes
Top achievements
Rank 1
Answers by
Dimitrina
Telerik team
Johannes
Top achievements
Rank 1
Share this question
or