javascript - SlickGrid_AppendNew Row with different Id -
i m using slickgrid v2.2, trying append new row selected row along data in selected row. working fine, in added row same id generating selected row default. using below code. kindly me out append new row different id selectedrow
var row = grid.getdataitem(selectedrow); dataview.additem(row); grid.render(); grid.setselectedrows([]);
row
object containing columns, row.id = {new id};
should work. you'll need generate id somehow depending on how scheme works (don't use curly brackets around new id value, i'm indicating value needs inserted).
Comments
Post a Comment