How to refresh without flickering
I am using my own JS objects, so the call looks like:
grid.setRowCount(myObjects.length);
//returns array representation of the objects that the grid understands
grid.setCellText(convertToArray(myObjects));
grid.refresh();
It is done periodically, as the data could change at any point.
If there are enough objects, a scrollbar appears. If you select an item near the bottom, you get a very ugly flicker effect when the refresh occurs, as the scrollbar is initially reset to the top and then moved down.
Any ideas on how to fix this? Thanks.
grid.setRowCount(myObjects.length);
//returns array representation of the objects that the grid understands
grid.setCellText(convertToArray(myObjects));
grid.refresh();
It is done periodically, as the data could change at any point.
If there are enough objects, a scrollbar appears. If you select an item near the bottom, you get a very ugly flicker effect when the refresh occurs, as the scrollbar is initially reset to the top and then moved down.
Any ideas on how to fix this? Thanks.
Sebastian
June 1,