我正在尝试使用ext 4在ext网格上启用允许使用按钮上下移动行。
下面是我上移一行的代码片段:
var record = grid.getSelectionModel().selection.record;
var index = grid.getStore().indexOf(record);
var newIndex = index - 1;
this.store.remove(selection, true);
this.store.insert(newIndex, record);
//selectionModel.select(rec