Hi! I always add more records at the grid.
Is there a way to set auto scroll?
I’ve tryed “scrollToBottom” when I add a new record, but it doesn’t work.. so, I’ve tryed "scrollToRow(…), but an Exception happens… look:
[ERROR] Uncaught exception escaped
com.google.gwt.core.client.JavaScriptException: (TypeError): ‘undefined’ é nulo ou não é um objeto
number: -2146823281
description: ‘undefined’ é nulo ou não é um objeto
at com.smartgwt.client.widgets.grid.ListGrid.scrollBodyTo(Native Method)
at com.smartgwt.client.widgets.grid.ListGrid.scrollToRow(ListGrid.java:5104)
…
This looks like an attempt to scroll the widget before it’s been drawn, or possibly before data as actually arrived from the server. Use the DataArrived event to ensure data is available before attempting to scroll to it.
But I’m not using DataSource
Then please show a complete, minimal, standalone test case demonstrating the issue.