Send "parentID" with "null" value on dataSource update requets

2 posts, 0 answers
  1. Stoyan
    Stoyan avatar
    9 posts
    Member since:
    Jan 2015

    Posted 22 Jul 2015 Link to this post


     My model is

     model: {
                        id: 'id',
                        fields: {
                            id: {type: 'number'},
                            parentId: {field: "parentId", nullable: true},
                           // some other fields

    When I edit item from my datasource and call dataSource.sync()  in dataSource update request value of parentId parameter is empty. Than when I receive the response with parentId: "" treelistview deletes the corresponding row.

    How can I manage to send parentId with null value to server?

    Thanks in advance

  2. Nikolay Rusev
    Nikolay Rusev avatar
    2289 posts

    Posted 24 Jul 2015 Link to this post

    Hello Stoyan,


    We are not sure how to replicate this. Can you isolate it a runnable example?


    The editing demo seems to be sending parentId field (ReportsTo in this case) correctly.


    Nikolay Rusev
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Back to Top