|Cell, row header, and column header selection not working in RCP app [message #1107688]
||Thu, 12 September 2013 19:53
| Bruce Obendorf
Registered: September 2013
Hi, I'm new to NatTable. I'm trying to get it to work by adding some of the example code to an existing RCP application I wrote. I'm trying to get the "Big data" example to work. It comes up and displays all 1 million rows and 500 columns just fine. Vertical and horizontal scrolling work fine. But when I try to select anything (cell, row header, column header), nothing happens. And selecting a cell or column header locks up the NatTable completely. Selecting a row header does nothing but does not lock up the NatTable -- scrolling still works. |
Here's the code I'm using, which is called from createPartControl() in my editor class. I copied the "Big data" example code. The last two lines I tweaked/added to make it work in my RCP app.
DummyGridLayerStack layer = new DummyGridLayerStack(500, 1000000);
// Widen row header so that all the row numbers are visible
DataLayer rowHeaderDataLayer = (DataLayer) layer.getRowHeaderDataLayer();
grid = new NatTable(this.parent, layer);
grid.setLayoutData(new GridData(GridData.FILL, GridData.FILL, true, true));
From reading the example code, it seemed that basic selection of cells/row headers/column headers should work automatically. I'm sure I'm missing something basic, but not sure what. I'm using Eclipse 3.5 with a 1.6.x JRE.
Any help will be much appreciated.
Powered by FUDForum
. Page generated in 0.10037 seconds