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); //刷新数据
}
});
},