Completed
Last Updated: 16 May 2019 07:20 by ADMIN
Boyan
Created on: 09 May 2019 09:02
Category: Kendo UI for jQuery
Type: Bug Report
0
The Gantt Add Task is not working if the parentId schema field has no defaultValue=null

Dear Telerik,

Please check this example. The single difference than the original one from the demos section, is that I deleted the tasksDataSource.schema.model.fields.parentId.defaultValue". Now the default value of the parentId will be 0 instead of null. If you try to add a new task, the logic will break because of inifinity loop caused by the new task with id=0 and parent=the same task(parentId=0).

I checked the documentation at https://docs.telerik.com/kendo-ui/api/javascript/data/ganttdatasource/configuration/schema and this obligation is missing. It is something small that can save an hour to someone else. 

Best Regards, Boyan.

1 comment
ADMIN
Veselin Tsvetanov
Posted on: 16 May 2019 07:20
Hi Boyan,

Your remark is perfectly valid. We will improve the API documentation by inserting the note in question. As a small token of gratitude for helping us to improve our product, I have updated your Telerik points.

Regards,
Veselin Tsvetanov
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.