Skip to main content



      Home
Home » Eclipse Projects » NatTable » Synchronise two NatTables when scrolling and row resizing.
Synchronise two NatTables when scrolling and row resizing. [message #1063532] Thu, 13 June 2013 07:42 Go to next message
Eclipse UserFriend
Hello!

In my app I need to sync two tables, which are displayed sie by side.


  • when I scroll one table down - the second should be scroled either.
  • when I scroll resize the cell height of one table - the other should resize it's cell height either


Question:
How would I do that in NatTable 1.0 ?

Explanation:
I display my data in two separate tables, to keep the possibility of hiding one table with a rollout animation, which is not possible when I just merge two tables into one.


Re: Synchronise two NatTables when scrolling and row resizing. [message #1063728 is a reply to message #1063532] Thu, 13 June 2013 18:13 Go to previous message
Eclipse UserFriend
Well usually I would say you can solve this by implementing an ILayerEventHandler that will do the necessary command on the second table when the first table is done.

Quote:
which is not possible when I just merge two tables into one.


That depends. I think it would be possible to implement some kind of rollout animation for the "second" table if you work with ColumnResizeCommands that perform resizes until the column width is 0. There is a forum post that shows this for row hiding.
Previous Topic:Contribution in Nattable Builder ?
Next Topic:Exchanging the ICellPainter at runtime?
Goto Forum:
  


Current Time: Sun Jul 13 06:18:49 EDT 2025

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

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

Back to the top