Of which getPreferredColumnWidth() are you speaking. Could you please be a bit more precise so we can have a look at the specific class?
As I also wrote in the FAQ, we do not suggest to use initial autoresizing on startup because of several issues regarding behaviour on scrolling and the performance issues you noticed. If you have an idea how to solve this, feel free to contribute. We are open for improvements.
In the meantime maybe the TextPainter solution could fit your needs?
Greez,
Dirk
The changes are to remove use of ArrayList.indexOf in the column reorder layer and column hide layer.
bodyDataLayer = new DataLayer(this.bodyDataProvider); bodyDataLayer.setColumnPercentageSizing(true); bodyDataLayer.setColumnWidthPercentageByPosition(0, 30); bodyDataLayer.setColumnWidthPercentageByPosition(1, 30); bodyDataLayer.setColumnWidthPercentageByPosition(2, 40);
GridDataFactory.fillDefaults().grab(true, true).applyTo(natTable); return natTable;