PDA

View Full Version : Delete several records



rkaat
13 Dec 2010, 7:59 AM
Hey,

I am trying to delete several records at once. I use a 'CheckboxSelectionModel' for the grid to select multiple rows. The grid has a toolbar on which I got the button to remove the selected records. At least, that is what I try to achieve. My grid uses a JsonStore and gets the data remotely from the server through JSON.

My question is : Are there any working examples that demonstrate this ? Escpecially where a checkboxSelectionModel is being used. A push in the good direction is also very much appreciated.

Screamy
13 Dec 2010, 9:01 AM
var arrayOfSelectedRecords = someGrid.selModel.getSelections();
someGrid.store.remove(arrayOfSelectedRecords);