NatTable data refresh issue on Horizontal and Vertical Scroll [message #1748014] |
Thu, 17 November 2016 13:50  |
Eclipse User |
|
|
|
I am using NatTable1.4 on FormEditor and it works really well for small size data which doesn't require a scroll. All the rows are loaded successfully for 32 columns.
However, when I have more than 100 rows of data and scrollbar appears, and I use vertical scroll , data is not loaded/refreshed in the table. All the column values appear empty. Similar issue persist with horizontal scroll. I am testing NatTable1.4 on Win 7 machine. With what I understand, data is available but redrawing is taking time. Is there any way to improve the response time to scroll?
Appreciate if any one can share a solution or are facing the same issue.
Thank you.
|
|
|
|
Re: NatTable data refresh issue on Horizontal and Vertical Scroll [message #1748030 is a reply to message #1748016] |
Thu, 17 November 2016 16:31   |
Eclipse User |
|
|
|
Here is the snippet below , I am using the below snippet from FullFeatureBodyLayerStack from Examples plugin.
//FullFeatureBodyLayerStack.java
IColumnPropertyAccessor<T> columnPropertyAccessor = new ReflectiveColumnPropertyAccessor<T>(
propertyNames);
this.bodyDataProvider = new ListDataProvider<T>(dataList, columnPropertyAccessor);
this.bodyDataLayer = new DataLayer(this.bodyDataProvider);
this.glazedListsEventLayer = new GlazedListsEventLayer<T>(this.bodyDataLayer,
eventList);
this.blinkingLayer = new BlinkLayer<T>(this.glazedListsEventLayer,
this.bodyDataProvider, rowIdAccessor, columnPropertyAccessor, configRegistry);
//FormPage.java -> createFormContent()
// Row header
final DefaultRowHeaderDataProvider rowHeaderDataProvider = new DefaultRowHeaderDataProvider(
this.bodyDataProvider);
DefaultRowHeaderDataLayer rowHeaderDataLayer = new DefaultRowHeaderDataLayer(rowHeaderDataProvider);
rowHeaderDataLayer.setDefaultColumnWidth(50);
ILayer rowHeaderLayer = new RowHeaderLayer(rowHeaderDataLayer, bodyLayer, bodyLayer.getSelectionLayer());
// Corner
final DefaultCornerDataProvider cornerDataProvider = new DefaultCornerDataProvider(
columnHeaderLayer.getColumnHeaderDataProvider(), rowHeaderDataProvider);
DataLayer cornerDataLayer = new DataLayer(cornerDataProvider);
ILayer cornerLayer = new CornerLayer(cornerDataLayer, rowHeaderLayer, columnHeaderLayer);
// Grid
GridLayer gridLayer = new GridLayer(bodyLayer, columnHeaderLayer, rowHeaderLayer, cornerLayer);
IConfigLabelAccumulator cellLabelAccumulator = getConfigLabelAccumulator(listOfPlans, bodyLayer);
bodyLayer.setConfigLabelAccumulator(cellLabelAccumulator);
this.natTable = new NatTable(parent, gridLayer, false);
DataList is a List of Objects from my pojo model.
Appreciate if you could let me know what is it going wrong here.
Thank you very much for the inputs.
|
|
|
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.75389 seconds