Bug: Out of stack space exception while creating new task.

2 posts, 0 answers
  1. Dmitry
    Dmitry avatar
    17 posts
    Member since:
    Oct 2014

    Posted 02 Mar 2015 Link to this post

    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?
  2. Bozhidar
    Admin
    Bozhidar avatar
    1101 posts

    Posted 04 Mar 2015 Link to this post

    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!
     
  3. Kendo UI is VS 2017 Ready
Back to Top