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

No Update of UI when changing AppointmentSource in background

1 Answer 80 Views
ScheduleView
This is a migrated thread and some comments may be shown as answers.
Heiko
Top achievements
Rank 1
Iron
Veteran
Heiko asked on 06 Dec 2012, 10:04 AM
We have two separate ScheduleView controls in our application both showing the same appointments but with two separate data sources. When a user changes one appointment in ScheduleView A the data source of ScheduleView B gets updated immediately: we set the whole collection (of type RadObservableCollection) to null then reloading from database and re-creating the collection of appointments again. The point is that the moment we make the refresh ScheduleView B is not visible but still loaded. Moving back to ScheduleView B shows no update of the UI. The user has to scroll up/down so the affected appointment gets out of view then into view again. Only then the changes are visible.

So the question is: how can we force a refresh of the UI after changing the underlying AppointmentSource? Just one more information: we do this all by using the MVVM pattern. - Maybe this is similar to this thread.

Regards
Neils

1 Answer, 1 is accepted

Sort by
0
Konstantina
Telerik team
answered on 11 Dec 2012, 03:20 PM
Hi Neils,

Since you are changing the source of the ScheduleView the measure and redrawing of the control should be fired. I tried to reproduce the issue in a simple project. On a button click first I set the source to null and then to a new ObservableCollection and the ScheduleView redraws itself. I am sending you a short video for reference.
If you could isolate the problem in a sample project and send it to us it will be very helpful for tracking down the source of the problem in a timely manner.

Regards,
Konstantina
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Tags
ScheduleView
Asked by
Heiko
Top achievements
Rank 1
Iron
Veteran
Answers by
Konstantina
Telerik team
Share this question
or