This is a migrated thread and some comments may be shown as answers.
Bug: Out of stack space exception while creating new task.
1 Answer 7 Views
This is a migrated thread and some comments may be shown as answers.
Dmitry
Top achievements
Rank 1
Dmitry asked on 02 Mar 2015, 12:53 PM
Hello, when I try to create new task I get "Out of stack space" exception.
Link with the example. Version of Kendo UI: 2014.3.1411.

What can be the reason of this exception?

1 Answer, 1 is accepted

Sort by
0
Bozhidar
Telerik team
answered on 04 Mar 2015, 07:37 AM
Hello,

This is a mixture of an unsuported scenario and a bug. Since you are using guid's as a primary key, and the datasource isn't connected to a service, which returns the id from an underlying datasource, you will have to provide a way for the newly created task to obtain an id. This is most easily done by providing a default value to the id field in the datasource schema/model/fields declaration:
schema: {
    model: {
        id: "id",
        fields: {
            id: {
                from: "id",
                type: "string",
                defaultValue: function() { return kendo.guid(); }
            },

That being said, the "Out of stack space" exception is a bug as well and we will fix it.

Regards,
Bozhidar
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
Tags
Gantt
Asked by
Dmitry
Top achievements
Rank 1
Answers by
Bozhidar
Telerik team
Share this question
or