Kendo Grid calls 'create' operation instead of 'update' after adding new record

Best solution

Set to update, create or delete different Call Action

From Telerik Support :

I already replied to your question in the support thread that you submitted on the same subject. For convenience I will paste my reply on the forum as well.

This problem occurs because your model does not have an ID. The model ID is essential for editing functionality and should not be ommited - each dataSource records should have unique ID, records with empty ID field are considered as new and are submitted through the "create" transport.

 schema: {
     model: {
         //id? model must have an unique ID field
         fields: {
             FirstName: { editable: false},
             DOB: { type: "date"},
             Created: {type: "date" },
             Updated: {type: "date" },
         }
     } },

For more information on the subject, please check the following resources:

http://docs.kendoui.com/api/framework/model#methods-Model.define http://www.kendoui.com/forums/ui/grid/request-for-support-on-editable-grid.aspx#228oGIheFkGD4v0SkV8Fzw

MasterLink

I hope this information will help


I have also the same problem & I have tried this & it will work.

.Events(events => events.RequestEnd("onRequestEnd"))

And in this function use belowe:

function onRequestEnd(e) {
    var tmp = e.type;
    if (tmp == "create") {
        //RequestEnd event handler code
          alert("Created succesully");
        var dataSource = this;
        dataSource.read();
    }
    else if (tmp == "update") {
          alert("Updated succesully");
    }
}

Try to Use this code in onRequestEnd event of grid

var dataSource = this;
    dataSource.read();

Hope that it will help you.