Add Task -> Uncaught TypeError: Cannot read property 'data' of undefined

1 Answer 2892 Views
Gantt
Alex
Top achievements
Rank 1
Alex asked on 01 Jun 2018, 08:54 PM

Hello,

https://dojo.telerik.com/@alexy99/acOsisiF

On Add task sometimes I get below, sometimes: Maximum call stack exceeded. As per below post I tried defaultValue for parentId but no go.

https://www.telerik.com/forums/error-when-the-data-type-of-the-id-and-parentid-to-string

Uncaught TypeError: Cannot read property 'data' of undefined

    at init.setup (kendo.all.min.js:27)
    at init.create (kendo.all.min.js:27)
    at Object.<anonymous> (kendo.all.min.js:28)
    at Function.Deferred (jquery-1.12.3.min.js:2)
    at init._promise (kendo.all.min.js:28)
    at init._send (kendo.all.min.js:28)
    at init.sync (kendo.all.min.js:27)
    at init._syncDataSource (kendo.all.min.js:85)
    at init._createTask (kendo.all.min.js:84)
    at init.r (kendo.all.min.js:84)

Alex
Top achievements
Rank 1
commented on 04 Jun 2018, 10:34 PM

Hi, can someone take a look please? My question is basically a continuation of below post if that solution does not work. Other people will find it helpful too:

https://www.telerik.com/forums/adding-new-task-cannot-read-property-'set'-of-undefined

1 Answer, 1 is accepted

Sort by
0
Accepted
Dimitar
Telerik team
answered on 05 Jun 2018, 10:54 AM
Hello Alex,

CRUD operations with remote data rely on server code to perform the read, update, create and destroy actions. To eliminate the observed error simply configure the DataSource's transport create and update actions as demonstrated in the below demo:


In addition to the above, you might also find the following article useful:


Regards,
Dimitar
Progress Telerik
Try our brand new, jQuery-free Angular components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Tags
Gantt
Asked by
Alex
Top achievements
Rank 1
Answers by
Dimitar
Telerik team
Share this question
or