View Full Version : Run callback function after Fx finished

16 Jun 2011, 12:19 PM
Here's what I'm trying to accomplish:

1) User selects a grid row
2) User clicks "Delete"
3) Row slides up (probably using slideUp())
4) Row is removed from store.

Code for what I have so far:

var selectedBanners = bannerGrid.getSelectionModel().getSelections();
for (var i = 0, r; r = selectedBanners[i]; i++)
var selectedRowIndex = bannerStore.indexOf(selectedBanners[i]);
var selectedRow = bannerGrid.getView().getRow(selectedRowIndex);

callback: function(row) {

This doesn't seem to work, but I think my logic with the callback is correct?

Note that without the animation stuff, the code words properly for deleting selected grid rows.