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

How to refresh appointments updated by programming

3 Answers 35 Views
ScheduleView
This is a migrated thread and some comments may be shown as answers.
Véronique
Top achievements
Rank 1
Véronique asked on 14 Jan 2019, 09:11 PM

Hi,

I used a scheduleview with custom appointment and style.

I modified appointments in my viewmodel programmatically when I received message from Azure service bus. The problem is that the UI isn't updated. I have to scroll down and up to see changes in UI.

I tried this solution : https://www.telerik.com/forums/changing-appointment-start-end-not-reflected-on-ui but it didn't work.

Thanks for your advice

Véronique

 

Here's my code :

public class TimeSlot : Appointment
{

....

        public void UpdateTimeSlot(TimeSlot source)
        {
            CopyFrom(source);

            _truckId = source.TruckId;
            TimeMarker = TimeSlotMarkerCollection.GetTimeSlotMarker(source.CurrentStatus);

            OnPropertyChanged();
        }

}

 

In my viewmodel :

public class DispatchBoardViewModel : ObservableObject
 {

        private void _listenerMessageService_MessageReceived(object sender, EventArgs e)
        {
            var dispatchList= ((MessageEventArgs)e)?.Message;
            dispatchList?.TimeSlots.ForEach(d =>
            {
                var displayedTimeSlot = TimeSlots.FirstOrDefault(ts =>[where_clause])
            );
            displayedTimeSlot?.UpdateTimeSlot(timeSlot);
            });

}

3 Answers, 1 is accepted

Sort by
0
Martin Ivanov
Telerik team
answered on 17 Jan 2019, 04:27 PM
Hello Véronique,

I will try to test a similar behavior tomorrow and let you know about my findings. However, it would be very useful if you could isolate this in a project and attach it here. 

Regards,
Martin Ivanov
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
0
Véronique
Top achievements
Rank 1
answered on 17 Jan 2019, 07:33 PM

Hi Martin,

Thanks for reply.

I have created a support ticket (#1383638) with the project.

Regards,

Véronique

0
Martin Ivanov
Telerik team
answered on 21 Jan 2019, 10:08 AM
Hi Véronique,

Please excuse me for the delay. It seems that I've lost this forum somewhere after sending it. I hope the issue gets resolved quickly in the support ticket.

Regards,
Martin Ivanov
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Tags
ScheduleView
Asked by
Véronique
Top achievements
Rank 1
Answers by
Martin Ivanov
Telerik team
Véronique
Top achievements
Rank 1
Share this question
or