i am taking help of this example: http://mleibman.github.com/SlickGrid/examples/example-checkbox-row-select.html and add a checkbox column to my grid and assign unique_id value of my record to the id of checkbox column i am getting checked columns number using grid.getSelectedRows();
it gives me a index number of row. how can i get id of this selected rows in slickgrid? please help me if anyone have any idea.
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();
}
}
It removes rows from grid. not from server side.