Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » NatTable » Sorting with different row heights
Sorting with different row heights [message #1187607] Fri, 15 November 2013 07:30 Go to next message
Artyom Karalov is currently offline Artyom KaralovFriend
Messages: 15
Registered: August 2013
Location: Israel
Junior Member
Hi.
I have NatTable with different row heights.
When sorting by specific column the heights don't move to new location of the records.
It would be more intuitive to bind height to data rather than row at least in sorting.
But of course it is not obvious since it brings many other questions: how to deal with heights in row removal, addition, data replacement, etc.

[Updated on: Fri, 15 November 2013 07:42]

Report message to a moderator

Re: Sorting with different row heights [message #1187644 is a reply to message #1187607] Fri, 15 November 2013 07:56 Go to previous messageGo to next message
Dirk Fauth is currently offline Dirk FauthFriend
Messages: 2702
Registered: July 2012
Senior Member
Quote:
It would be more intuitive to bind height to data rather than row


This is not only true for row heights but for a lot more things. But this can not be fixed in the current architecture without rewriting almost everything. That's why we will cover that in the new architecture.
Re: Sorting with different row heights [message #1187699 is a reply to message #1187644] Fri, 15 November 2013 08:29 Go to previous messageGo to next message
Artyom Karalov is currently offline Artyom KaralovFriend
Messages: 15
Registered: August 2013
Location: Israel
Junior Member
Can you at least give me hint how to get notification on sort and filter events so I will take care of it locally?
I tried to register event handler ILayerEventHandler<SortColumnEvent> on SortHeaderLayer, but got no notification.
Re: Sorting with different row heights [message #1187707 is a reply to message #1187699] Fri, 15 November 2013 08:32 Go to previous messageGo to next message
Dirk Fauth is currently offline Dirk FauthFriend
Messages: 2702
Registered: July 2012
Senior Member
Try to register it above the SortHeaderLayer, like e.g. the NatTable itself.
Re: Sorting with different row heights [message #1190556 is a reply to message #1187707] Sat, 16 November 2013 17:18 Go to previous message
Artyom Karalov is currently offline Artyom KaralovFriend
Messages: 15
Registered: August 2013
Location: Israel
Junior Member
I didn't find method to register handler on NatTable, but registering on one layer above SortHeaderLayer did the magic.
Thanks again for prompt response.
Previous Topic:How to get row/column index based on position at CompositeLayer
Next Topic:Enabling checkbox in NATTable with data provider which is represented by a Boolean List
Goto Forum:
  


Current Time: Tue Aug 20 00:38:49 GMT 2019

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

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

Back to the top