Ticket T1287298
Visible to All Users

DxScheduler onAppointmentUpdating incorrect data

created 11 days ago

Hi,
I'm trying to compare oldData and newData in the onAppointmentUpdating event of the dxScheduler.
The problem i've encountered is that the start and end dates of the old and new appointments are always the same.
Here there are an example based on the demo (https://js.devexpress.com/jQuery/Demos/WidgetsGallery/Demo/Scheduler/Timelines/MaterialBlueLight/)::)
https://codepen.io/Omar-Silvini/pen/MYYgyBm.
Please, can you explain me what i'm doing wrong?

Thanks

Comments (3)
Diana (DevExpress Support) 11 days ago

    Hello,

    Thank you for the example.

    The values are the same because they are all undefined. The newData and oldData objects do not include start and end properties. If you log the event in the onAppointmentUpdating handler, you'll notice that these objects contain startDate and endDate instead.

    As you can see in the screenshot, the values in these fields are different:
    Clipboard-File-1.png

    I hope this helps.

    DD DD
    DocsMarshal Dev 2 11 days ago

      Hi,
      Thanks for the reply.
      Sorry for the mistake.
      I changed the codepen, now i used startDate and endDate but the result is the same. Note that my version i 24.2.6.
      I hope this can explain my problem.

      Thanks

      DD DD
      DocsMarshal Dev 2 11 days ago

        Hi,
        I forgot to specify that the action to do for showing the error on the console is the resize (not the drag and drop).
        Sorry again for the oversight.
        Thanks

        Answers approved by DevExpress Support

        created 9 days ago

        Hello,

        Thank you for the clarification.

        I reproduced the issue, created a separate ticket regarding it, and forwarded it to my team for further research: Scheduler – onAppointmentUpdating returns wrong oldData dates after resizing. We will update it once we have news. Please add it to your Support Center Favorites List so you don't miss our notifications.

        Regards,
        Diana

          Disclaimer: The information provided on DevExpress.com and affiliated web properties (including the DevExpress Support Center) is provided "as is" without warranty of any kind. Developer Express Inc disclaims all warranties, either express or implied, including the warranties of merchantability and fitness for a particular purpose. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.

          Confidential Information: Developer Express Inc does not wish to receive, will not act to procure, nor will it solicit, confidential or proprietary materials and information from you through the DevExpress Support Center or its web properties. Any and all materials or information divulged during chats, email communications, online discussions, Support Center tickets, or made available to Developer Express Inc in any manner will be deemed NOT to be confidential by Developer Express Inc. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.