Grid保存之后自动刷新数据,加载数据源

saveFunction:function () {
    $('#grid1').data('kendoGrid').saveChanges().done(function(e){
        if(e.response.success){
            viewModel.set("model.statusCode","ALTER");
            $("#submit-btn").removeAttr("disabled").on("click",function () {
                viewModel.submitData();
            });
            $('#grid1').data('kendoGrid').dataSource.page(1); //刷新数据
        }
    });
},

猜你喜欢

转载自www.cnblogs.com/chengshixiaonongming/p/10372751.html
0条评论
添加一条新回复