Can Kendo Grid be always in edit mode?

前端 未结 3 2063
悲哀的现实
悲哀的现实 2021-02-20 07:52

Does anyone know if the kendo grid could be always set to edit mode at all times?

We don\'t want the user to click on a cell or a button to activate the edit mode. We w

3条回答
  •  孤独总比滥情好
    2021-02-20 08:26

    I found the above answer to be excellent. One issue though, is that Kendo doesn't clean up bindings when it refreshes the grid (such as when sorting or filtering or when refresh() is called) and deletes the grid's DOM elements. The result is the dataItems will have an increasing number of "change" events queued up -- a bit of a memory leak. This can be avoided by unbinding in the dataBinding event, as below:

    dataBinding: function() {
      var rows = this.tbody.children();
      for (var i = 0; i < rows.length; i++)  {
        kendo.unbind(rows[i]);
      }
    }
    

提交回复
热议问题