Hi Isomorphic,
ok, this is on the 1st point. Would this solve the issue (assuming no fetch is needed):
In a real world scenario, the 1st call can issue a fetch, so the setup would be
Does this approach look good? Perhaps it can be made even better with some if (resultSet.rowIsLoaded())....
If not, how do I wait for the redraw, as you suggest?
Did you also see/test the 2nd point and the question on performance?
Best regards
Blama
ok, this is on the 1st point. Would this solve the issue (assuming no fetch is needed):
- scrollToRow(rowNumber, VerticalAlignment.BOTTOM)
- scrollToRow(rowNumber, VerticalAlignment.BOTTOM)
In a real world scenario, the 1st call can issue a fetch, so the setup would be
- Store targetRow in ListGrid subclass member variable
- addDataArrivedHandler with 2x scrollToRow(lg.getTargetRow(), VerticalAlignment.BOTTOM)
- Call scrollToRow(targetRow, VerticalAlignment.BOTTOM)
- Call scrollToRow(targetRow, VerticalAlignment.BOTTOM) again
Does this approach look good? Perhaps it can be made even better with some if (resultSet.rowIsLoaded())....
If not, how do I wait for the redraw, as you suggest?
Did you also see/test the 2nd point and the question on performance?
Best regards
Blama
Comment