0

创建新行(内联)将显示要删除和编辑行的图标。此外,显示行展开图标(虽然不能有任何细节(子网格作为网格))。如何正确/禁用/删除图标?在插入的情况下,最好在行编辑中使用保存和取消操作。谢谢你的帮助!

4

1 回答 1

0

You can use the afterInsertRow event to accomplish this. For example if you don't want the row to be expanded and you don't want the edit delete icons do the following:

  function AfterInsertRow(rowid, rowdata, rowelem) {
      if (rowid == '0') {
          var row = $('#0');
          row.find('a:first').remove();
          row.find('div:first').remove();
      }
  }

Assuming the inserted row has the value 0.

于 2013-11-22T09:54:03.900 回答