Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

in slickgrid how I can delete a row from a javascript function

Tags:

row

slickgrid

how I can delete a row from a javascript function from a button for example

like image 302
gerar Avatar asked Jul 21 '10 20:07

gerar


1 Answers

If you're using a DataView, use the following:

DataView.deleteItem(RowID);//RowID is the actual ID of the row and not the row number
Grid.invalidate();
Grid.render();

If you only know the row number, you can get theRowID using:

var item = DataView.getItem(RowNum);//RowNum is the number of the row
var RowID = item.id
like image 117
Bob Avatar answered Sep 18 '22 14:09

Bob