Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在帮助这个例子:http : //mleibman.github.com/SlickGrid/examples/example-checkbox-row-select.html 并在我的网格中添加一个复选框列并将我的记录的 unique_id 值分配给 id复选框列我使用它来检查列号,grid.getSelectedRows(); 它给了我行的索引号。如何在 slickgrid 中获取此选定行的 id?如果有人有任何想法,请帮助我。
grid.getSelectedRows();
var selectedrows = grid.getSelectedRows(); for(i=0;i<len;i++){ var d = grid.getData().getItem(selectedrows[i]); if(d != null && d != 'undefined'){ dataView.deleteItem(d.id); grid.invalidate(); grid.updateRowCount(); grid.render(); } }
它从网格中删除行。不是从服务器端。