This is a migrated thread and some comments may be shown as answers.

Gantt task duplication/hang bug

4 Answers 71 Views
This is a migrated thread and some comments may be shown as answers.
Al
Top achievements
Rank 1
Iron
Iron
Iron
Al asked on 21 Dec 2020, 06:59 AM

Looking at the example below (for local data source)

https://www.telerik.com/kendo-vue-ui/components/gantt/data-binding/

Clicking 'Add Task' causes the child tasks to be duplicated + when choosing 'Add Child' the whole thing hangs.

 

I see the same behaviour in my own project - is there some other code required or is this a bug?

4 Answers, 1 is accepted

Sort by
0
Petar
Telerik team
answered on 23 Dec 2020, 06:42 AM

HI Al,

I will check the reported behavior in detail and will give more feedback about it in the next few hours. 

Regards,
Petar
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/.

0
Petar
Telerik team
answered on 23 Dec 2020, 10:23 AM

Hi Al,

Thank you for reporting the issue with the Gantt demo. The reason for the behavior in the linked demo are the IDs of the different dataSource items. To be more precise, the reason for the issue is the fact that 0 is not a valid value of the id property of a dataSource item. 

Here is a StackBlitz example that uses the local datasource example you've sent me. The changes applied to this example are only in the ids and the parentIds of the different datasource items. 

Check the example and let me know if everything works correctly in it. 

I've updated your Telerik points as a sign of gratitude for reporting the issue.

Regards,
Petar
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/.

0
Al
Top achievements
Rank 1
Iron
Iron
Iron
answered on 23 Dec 2020, 10:43 AM

The original problem seems to be sorted but something is still odd, by fluke I noticed the behaviour below which creates duplicate 'New task' in your StackBlitz example:

 

  Click 'Main Project'
  Click 'Add Above' which creates 'New Task' at the top
  Click and drag 'Task 1' to be child of 'New Task'
  Click and drag 'Task 1' to be child of 'Main Project' (it's original position)
  At this point there are two 'New task' object where there should only be one

0
Plamen
Telerik team
answered on 24 Dec 2020, 06:35 AM

Hi,

Thank you for elaborating the issue.

In general the local DataSource scenario that is used here is rather not recommended for a CRUD operations scenarios. In CRUD cases need to create a model and also handle correctly the create, update, delete methods of the DataSource as for example it is done in our remote DataSource example - https://stackblitz.com/run/?file=src/main.vue.

Hope this information will be helpful. If you have further questions please let me know.

Regards,
Plamen
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/.

Asked by
Al
Top achievements
Rank 1
Iron
Iron
Iron
Answers by
Petar
Telerik team
Al
Top achievements
Rank 1
Iron
Iron
Iron
Plamen
Telerik team
Share this question
or