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

后端 未结 11 1936
忘掉有多难
忘掉有多难 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:52

    using AutoSync(true) in ajax mvc kendo grid having pop up edit mode causes the pop up to not show up at all.

    So I use this

    function onRequestEnd(e) {
            if(e.type == "create" || e.type == "destroy" || e.type == "update") {
                setTimeout(function myfunction() {
                    $("#mygrid").data("kendoGrid").dataSource.read();
                }, 1000);
            }
        }
    

    The time out is to make sure you dont over lap the crud operation.

提交回复
热议问题