Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » NatTable » Row Reorder issue
Row Reorder issue [message #1767435] Thu, 06 July 2017 04:49 Go to next message
K Kumar is currently offline K KumarFriend
Messages: 38
Registered: March 2011
Member
I'm trying to configure nattable to support Column Reordering, Column Show/Hide, Row reordering, Row Show/Hide along with usual selection layer and viewport layer.

Building the grid with column reorder, column show/hide, selection layer and viewport works fine.

When I introduce the RowReorder in between column hide/show and selection layer, if I have less rows than view port works fine but if I have more, row numbers are shown as 0 and no data is displayed.

Any idea what could be wrong? Here is the body layer stack which is exhibiting the issue I mentioned.

		this.columnReorderLayer = new ColumnReorderLayer(dataLayer);

		this.columnHideShowLayer = new ColumnHideShowLayer(this.columnReorderLayer);

		this.rowReorderLayer = new RowReorderLayer(columnHideShowLayer);

		this.selectionLayer = new SelectionLayer(this.rowReorderLayer);

		this.viewportLayer = new ViewportLayer(this.selectionLayer);

		setUnderlyingLayer(this.viewportLayer);

		registerCommandHandler(new CopyDataCommandHandler(this.selectionLayer));


Re: Row Reorder issue [message #1767480 is a reply to message #1767435] Thu, 06 July 2017 10:33 Go to previous message
Dirk Fauth is currently offline Dirk FauthFriend
Messages: 2624
Registered: July 2012
Senior Member
Please have a look at our examples application. There is a dedicated example for row reordering. Compare your solution to that example to find out what is different.

IIRC the layer stacking is important if all the named layers should be combined.
Previous Topic:Dynamic preferred min column width in composite layer
Next Topic:How check a cell which only display part of content?
Goto Forum:
  


Current Time: Wed Nov 14 15:05:07 GMT 2018

Powered by FUDForum. Page generated in 0.01639 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top