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
265
Drag and drop appointment on UltraTimeLine
posted

I have an ultraDayView and below it there is ultraTimeLine. Both are connect to the same UltraCalendarInfo. Dragging appointment on the ultraDayView is synchronize with the ultraTimeLine and as you move  the appointment on the ultraDayView you can see that its moving on the ultraTimeLine, But if you dragging appointment on the ultraTimeLine the same appointment on the UltraDayView is not moving  and not relocate on the correct time slot, only when done dragging and on  after click time slot on ultraTimeLine the appointment on the ultraDayView will correct to the exact time position .

Should it function the same - I mean dragging appointment on UltraTimeLine should move the same appointment on the ultraDayViw  as you drag the appointment?

Please advice.

Thanks.

Parents
  • 69832
    Verified Answer
    Offline posted

    That is a bug which will be addressed in a forthcoming service release. In the meantime, you can apply the following workaround:

    private delegate void AppointmentsDraggingAsyncDelegate( AppointmentsDraggingEventArgs args );

    this.timeLineView.AppointmentsDragging += new AppointmentsDraggingHandler(timeLineView_AppointmentsDragging);

    void timeLineView_AppointmentsDragging(object sender, AppointmentsDraggingEventArgs e)
    {
        UltraTimelineView timelineView = sender as UltraTimelineView;
        this.BeginInvoke( new AppointmentsDraggingAsyncDelegate(this.OnAppointmentsDraggingAsync), new object[]{e} );
    }

    private void OnAppointmentsDraggingAsync( AppointmentsDraggingEventArgs args )
    {
        this.dayView.UIElement.DirtyChildElements(true);
        this.dayView.Update();

Reply Children
No Data