No Update of UI when changing AppointmentSource in background

2 posts, 0 answers
  1. Heiko
    Heiko avatar
    153 posts
    Member since:
    Oct 2012

    Posted 06 Dec 2012 Link to this post

    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.

  2. Konstantina
    Konstantina avatar
    2332 posts

    Posted 11 Dec 2012 Link to this post

    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.

    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Back to Top