How do I check if a Kendo Grid has had changes made to it?

前端 未结 6 944
我在风中等你
我在风中等你 2021-02-12 10:58

How can I check if a Kendo Grid has changes? I heard that there is a dirty property, but I cant find it.

6条回答
  •  无人及你
    2021-02-12 12:03

    grid.dataSource.hasChanges will let you know if the datasource has changed

                                if (datasource.hasChanges() === true) {
                                    alert('yes');
                                } else {
                                    alert('no');
                                }
    

提交回复
热议问题