Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » NatTable » Sorting a TreeTable at first level
Sorting a TreeTable at first level [message #1817424] Thu, 21 November 2019 21:52 Go to next message
Ralf Heydenreich is currently offline Ralf HeydenreichFriend
Messages: 234
Registered: July 2009
Senior Member
Hi all,
I want to sort a tree table on its first level with a single click on the column header. With a "normal" table it works fine, but with a tree table it doesn't work. How could I implement this? I didn't find an example for it.

TIA,
Ralf.
Re: Sorting a TreeTable at first level [message #1817427 is a reply to message #1817424] Fri, 22 November 2019 04:49 Go to previous messageGo to next message
Dirk Fauth is currently offline Dirk FauthFriend
Messages: 2814
Registered: July 2012
Senior Member
You need to connect the TreeFormat with the ISortModel.

Example is here: https://github.com/eclipse/nebula.widgets.nattable/blob/master/org.eclipse.nebula.widgets.nattable.examples/src/org/eclipse/nebula/widgets/nattable/examples/examples/_100_Layers/TreeGridExample.java
Re: Sorting a TreeTable at first level [message #1818439 is a reply to message #1817427] Mon, 16 December 2019 10:28 Go to previous message
Ralf Heydenreich is currently offline Ralf HeydenreichFriend
Messages: 234
Registered: July 2009
Senior Member
ah, ok. Thanks a lot.
Previous Topic:Customize/Configure ColumnChooser
Next Topic:Row and column header disappear
Goto Forum:
  


Current Time: Wed Jul 28 22:10:07 GMT 2021

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

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

Back to the top