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

前端 未结 6 943
我在风中等你
我在风中等你 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 11:56

    worth a try:

    var hasDirtyRow = $.grep(gridDataSource.view(), function(e) { return e.dirty === true; });
    if (hasDirtyRow.length != 0)
    {
         // grid has dirty row(s)
    }
    

提交回复
热议问题