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

后端 未结 11 1762
忘掉有多难
忘掉有多难 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 16:06

    Add Events into DataSource

    .DataSource(dataSource => dataSource.Ajax(
    
            .Events(e => e.RequestEnd("PowerPlantProduction.onRequestEnd"))**
    )
    

    Javascript:

    onRequestEnd: function (e) {
    
            if (e.type == "update") {
                if (!e.response.Errors) {
                   e.sender.read();
                }
            }
        },
    

提交回复
热议问题