Not all values displayed [message #1064595] |
Thu, 20 June 2013 07:44 |
Andreas Graf Messages: 211 Registered: July 2009 |
Senior Member |
|
|
Dear all,
we have a problem with the Nattable - attachements are disabled in this forum, so I'll try to describe: Only the first row's values are actually displayed, though we can see that all col/row index combinations are called in the data provider.
The other rows are simply grey.
We create the table with this piece of code:
IDataProvider bodyDataProvider = new bdP(pageInput);
DataLayer dataLayer = new DataLayer(bodyDataProvider);
mhP mhP = new mhP(pageInput);
// DefaultColumnHeaderDataLayer columnHeaderDataLayer = new DefaultColumnHeaderDataLayer(new DefaultColumnHeaderDataProvider(new String[] {"C"}));
DefaultColumnHeaderDataLayer columnHeaderDataLayer = new DefaultColumnHeaderDataLayer(mhP);
DefaultRowHeaderDataLayer rowHeaderLayer = new DefaultRowHeaderDataLayer(new rhP(pageInput));
DefaultCornerDataProvider cornerDataProvider = new DefaultCornerDataProvider(columnHeaderDataLayer.getDataProvider(),
rowHeaderLayer.getDataProvider());
CornerLayer cornerLayer = new CornerLayer( new DataLayer(cornerDataProvider), rowHeaderLayer, columnHeaderDataLayer);
GridLayer gridLayer = new GridLayer(dataLayer, columnHeaderDataLayer, rowHeaderLayer, cornerLayer);
NatTable natTable = new NatTable(form.getBody(), gridLayer);
natTable.setLayoutData(new GridData(GridData.FILL_HORIZONTAL,GridData.FILL_VERTICAL));
Any help appreciated.
|
|
|
|
|
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.07401 seconds