BUG when Dragging All Day Events sets invalid date/time

Hi

With Reference to:

import { ScheduleWeekMonthAgendaTimelineViewsTimelineMonthResizeDragAndDrop } from '@syncfusion/ej2-schedule';

Schedule.InjectWeekMonthTimelineViewsTimelineMonthAgendaResizeDragAndDrop);
let scheduleObjSchedule = new Schedule({
    width: '100%',
    height: '550px',
    currentView: 'TimelineWeek',
    views: ['Week''Month''TimelineWeek','TimelineMonth''Agenda'],
    selectedDate: new Date(201831),
    allowResizing: true
    allowDragAndDrop: true,
    group: {
        resources: ['Owners']
    },
    resources: [{
        field: 'OwnerId'title: 'Owner',
        name: 'Owners'allowMultiple: true,
        dataSource: [
            { OwnerText: 'Nancy'Id: 1OwnerColor: '#ffaa00' },
            { OwnerText: 'Steven'Id: 2OwnerColor: '#f8a398' },
            { OwnerText: 'Michael'Id: 3OwnerColor: '#7499e1' }
        ],
        textField: 'OwnerText'idField: 'Id'colorField: 'OwnerColor'
    }],
    startHour: '07:00',
    endHour: '18:00',
    timeScale: {
        enable: true,
        interval: 60,
        slotCount: 1
    },
    workHours: {
        highlight : true,
        start     : '07:00',
        end       : '18:00',
      },  

    eventSettings: { 
        dataSource: [{
            Id: 1,
            Subject: 'Workflow Analysis',
            StartTime: new Date(20183100),
            EndTime: new Date(2018312359),
            IsAllDay: true,
            OwnerId: 1,
            RoomId: 1
        }, {
            Id: 2,
            Subject: 'Requirement planning',
            StartTime: new Date(201831120),
            EndTime: new Date(201831140),
            IsAllDay: false,
            OwnerId: 2,
            RoomId: 2
        }],
    }
});
scheduleObj.appendTo('#Schedule');


If you run the above code in stackblitz and try to drag the "Workflow Analysis" to the next day - the event displays across 2 days rather than 1 and/or the start/end time appears and the all day flag is dropped.







2 Replies

SR Swathi Ravi Syncfusion Team December 4, 2024 11:30 AM UTC

Hi Raveen Sundram,

 

Thank you for reaching out.

 

Your reported problem is considered a bug. The fix for this defect will be included in our upcoming weekly patch release, which is expected to be rolled out by December 24, 2024. You can track the status of the fix at the following link:

 

 

Disclaimer: Inclusion of this solution in the weekly release may change due to other factors including but not limited to QA checks and works reprioritization.

 

Regards,

Swathi



SR Swathi Ravi Syncfusion Team December 24, 2024 12:36 PM UTC

Hi Raveen Sundram,

 

We are glad to announce that our weekly release (V28.1.36) has been rolled out successfully. The fix for the issue has been included in our weekly release (28.1.36). Upgrade to the latest version to resolve the issue.

 

Release notes: https://ej2.syncfusion.com/documentation/release-notes/28.1.36?type=all#schedule

 

Feedback: In Scheduler Timeline views, dragging all-day events displays incorrect times and drops them across two days in JavaScript | Feedback Portal

Sample: Tpngy2 (forked) - StackBlitz

 

Root Cause: We didn't handle this case at our source end.

 

We thank you for your support and appreciate your patience in waiting for this release. Please get in touch with us if you would require any further assistance.

 

Regards,

Swathi


Loader.
Up arrow icon