Originally posted by Isomorphic
View Post
The only way I think of, but perhaps slightly naive at the moment, is to track the most recent previous row that the onDropMove was called for, and subsequently issue a refreshRow on that as well.
Is that what you mean? Please let me know if there is a better way.
Thanks again.
Code:
private Integer prevDropMoveRow;
<snip>
@Override
public void onDropMove(DropMoveEvent event) {
int rowNum = employeeTreeGrid.getRecordIndex(employeeTreeGrid.getDropFolder());
textArea.setValue(textArea.getValueAsString() + "\n onDropMove: " + rowNum);
if (prevDropMoveRow != null && prevDropMoveRow >= 0 && prevDropMoveRow != rowNum) {
employeeTreeGrid.refreshRow(prevDropMoveRow);
}
if (rowNum >= 0) {
employeeTreeGrid.refreshRow(rowNum);
prevDropMoveRow = rowNum;
}
}
Leave a comment: