How can I refresh the grid after I edit the Kendo UI grid?

后端 未结 11 1760
忘掉有多难
忘掉有多难 2021-02-01 15:09

I edit the grid using editable: \"popup\" as shown on Telerik\'s demo page. After I edit the grid, I want the grid to refresh. Does the grid have any event that is

11条回答
  •  傲寒
    傲寒 (楼主)
    2021-02-01 15:56

    In case someone else needs to know how to do this. You can include the "complete" function in your create as well as update bits.

    transport: {
        read: {
            url: "http://myurl.json"
        },
        create: {
            url: "http://mycreate.json",
            type: "POST",
            complete: function(e) {
                $("#grid").data("kendoGrid").dataSource.read(); 
            }
        },
    

提交回复
热议问题