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
1179
Detecting appointments being moved by dragging in the various schedule controls
posted

Hi,

This message applies to the 2013.1 release. I'm having some issues with detecting when appointments are moved or resized on the UltraDayView, UltraWeekView and UltraMonthViewSingle controls. We are using databinding to populate the controls and our application needs to persist the changes when these events take place. For the day view control we are able to use the AfterAppointmentsMoved event (though there is an issue I'll come to later), but there doesn't appear to be anything similar for the week and month controls. Am I missing something?

For the day view control there is the AfterAppointmentsMoved event, but this seems to have a problem. In the EventArgs parameter there is an Appointments collection, but when I access the BindingListObject property of any of the contained appointments, its value is null. I have worked around this by using the CalendarInfo's SelectedAppointments collection within the event handler, but surely I shouldn't need to? The binding is clearly correct, as it is present within the CalendarInfo's collection. It's also present and correct if I catch the AppointmentResized event to handle changes to an appointment start and end. Can you tell me how to handle this properly? I need to pass the bound object to my presentation layer.

I'm a little surprised that there isn't an event on the CalendarInfo control to tie this together. We are using the day/week/month controls to show the user's calendar, allowing them to switch from one view to another. All three controls are bound to the shared CalendarInfo control, but we are having to write slightly different version of the same event handles to handle each control. Being able to write a single event handler for the shared control would be more efficient

Finally, is it possible to only receive the Moved/Resized event when the user has finished moving or resizing the appointment? At present our presentation layer is being triggered for every increment of the appointments size or position, rather than a single notification when the user finishes

  • 6120
    Offline posted

    Hello Kevin,

    I have investigated BindingListObject of an appointment being null in the UltraDayView’s AfterAppointmentMoved event.  This object is null for each appointment in the event args appointment collection. I have asked our engineering staff to examine this further. To ensure that it will receive attention, I have logged this behavior in our internal tracking system with a Development ID of 230149. This will be assigned to a developer in a future sprint to review my investigation and confirm my findings or to offer a fix, or other resolution.

    However, as of now we do not have any event off the CalenderInfo object that will be fired after an appointment is moved/resized.

    I will update you with any new information after the review. You can also continue to send updates to this issue at any time.

    Please let me know if you need more information.

    Sincerely,
    Sahaja Kokkalagadda
    Associate Software Developer