Gantt: Reordering items sending 2 update requests per item

3 Answers 142 Views
Gantt
Beto
Top achievements
Rank 1
Beto asked on 30 Aug 2021, 10:17 AM

Hi,

I recently noticed quite a few server requests being returned as conflicting when items in the gantt timeline are reordered.

A console output in the parameterMap function shows, that for every item affected by reordering 2 update requests are prepared and sent to the server.

The parameterMap function offers no way of cancelling a request from being executed since this only exists to transform data.

This is not specific to our implementation and can be reproduced in a dojo with the current Kendo version (2021.2.616): https://dojo.telerik.com/AGodEBIb

Is there a specific reason behind this? 
Not only seems doubling the number of requests inefficent to me. Sending a second update request before the first one has even been resolved by the server, might lead to issues for other users as well.

In the meantime thanks in advance for any tips how I can prevent the second update from being sent to the server.

3 Answers, 1 is accepted

Sort by
0
Neli
Telerik team
answered on 02 Sep 2021, 08:45 AM

Hello Beto,

If the child task is moved within the parent task's Start and End dates only a request to update the task will be sent. If however, the task Start after moving is before the parent's Start (or the End is after the parent's End), the parent needs to be updated.

The described behavior could be observed in the screencast linked here. As you will see when the 'Architecture' task is moved within its parent task start and end, a single update request is sent. However, in case the 'Architecture' task is moved in such a way that the start or end of the parent task 'Implementation' should be also updated a request for updating also the parent task is sent to the server. 

This is behavior is built-in the Gantt and its purpose is to keep parent and their child tasks data in sync. There is no configuration option that allows turning off the parent tasks updates in the described scenario.

I hope this helps.

Regards,
Neli
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

Beto
Top achievements
Rank 1
commented on 29 Sep 2021, 02:49 PM

Hi Neli,

I think you probably misunderstood what I was talking about.

I was not referring to moving the task. The question is about reordering tasks inside a group (or even moving them into another group) as shown in the attached screenshot.

In the Dojo mentioned in the initial post I simply change the order of the rows 'Data Layer' and 'Architecture'.
This leads to 2 server requests for each item, what you can also see in the screenshot.

As mentioned above this leads to different issuses:

  • Sending 2 parallel updates for one item leads to a conflict on the server
  • The huge number of total requests unnecessarily slows down the overall processing time because they can't be sent in parallel and have to be queued


0
Neli
Telerik team
answered on 04 Oct 2021, 11:20 AM

Hello Beto,

I will need a little bit more time to review the issue. I will write ou back once I have more information to share.

Thank you very much for your patience.

Regards,
Neli
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

0
Neli
Telerik team
answered on 11 Oct 2021, 06:26 AM

Hi Beto,

Thank you very much for your patience. Based on the provided information I have logged a Bug report on your behalf in our official Feedback Portal. Below you will find a link to the issue:

- https://feedback.telerik.com/kendo-jquery-ui/1538693-gantt-duplicates-requests-when-reordering-items-in-the-treelist-part

You could follow the item in the Feedback Portal in order to be notified about our progress on the issue.

As a small token of gratitude for reporting a bug, I have updated your Telerik points.

 

Regards,
Neli
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

Tags
Gantt
Asked by
Beto
Top achievements
Rank 1
Answers by
Neli
Telerik team
Share this question
or