This is a migrated thread and some comments may be shown as answers.

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

1 Answer 58 Views
TreeList
This is a migrated thread and some comments may be shown as answers.
Stoyan
Top achievements
Rank 1
Stoyan asked on 22 Jul 2015, 11:14 AM

Hello,

 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

1 Answer, 1 is accepted

Sort by
0
Nikolay Rusev
Telerik team
answered on 24 Jul 2015, 07:18 AM

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.

 

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