datatable item with id = 0?

When i have id = 0 for item, then system thinks that it’s a new record and can’t update actually. In our case id = 0 is possible and correct.

Can we achieve this?

We do not recommend using id = 0. At least try to set your ID as string id:"0".

I will try to ask to change that behaviour at server side. BUT, sometimes it’s not possible to tune the server side and 0 as integer at json response can be valid ID. It would be good to check for the type of id and if integer then consider as allowed. I understand that’s all about speed, but you can try to check in 2 way, e.g.:

`
 if(!item.id && typeof item.id != 'number') {
....
}
`

in that case there will not be any impact on speed/perfomance and 0 as integer will be considered as correct value. As i said, sometimes you just don’t have any access to server and 0 can be valid.