Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
70
XamDataScheduleManager Events
posted

Hi!

Is it possible to add a custom behaviour to the already occuring events for ActivityResizing, ...? When I add an event handler for these events the appointment in the UI is not updated anymore.

I use a XamScheduleView to make some kind of appointment timeline. It is possible that an appointment has an corresponding appointment in a second calendar and when i resize the appointment in calendar1, the appointment in calendar2 should be resized too.

Can you give any hints?

Thank you

Parents
No Data
Reply
  • 54937
    Offline posted

    ActivityResizing is invoked before a resize operation begins. Just handling the event would not prevent the ui from updating although setting Cancel to true would prevent the resize operation from proceeding. Maybe you were doing something specific in this event handler or another that was interfering?

    With regards to the specific question, I'm not sure exactly what type of synchronization you are looking to perform. Are you only looking to synchronize via a resize? I mean what if the user drags one of the activities, resizes the start of the activity, changes the start/end via the appointment dialog? If you want to always keep the Start/End in sync then probably the best thing to do is to update the value of  the other activity from the ActivityChanged event. Note that this will be fired when the change is actually committed and not as the user is dragging the first activity.

Children
No Data