Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » NatTable » Is it possible to put filter dropdown with column header ?
Is it possible to put filter dropdown with column header ? [message #1770790] Thu, 17 August 2017 07:13 Go to next message
Gaurav Tripathi is currently offline Gaurav TripathiFriend
Messages: 41
Registered: September 2015
Member
Hi,
Is there any way where we can put filter drop-down icon on the right-hand side of each column header.
Right now I have created filter row layer which is beside column header. Same as shown in NatTable example.

Thanks.
Re: Is it possible to put filter dropdown with column header ? [message #1771003 is a reply to message #1770790] Mon, 21 August 2017 05:47 Go to previous messageGo to next message
Dirk Fauth is currently offline Dirk FauthFriend
Messages: 2614
Registered: July 2012
Senior Member
Not sure what you mean. You need to think of the whole composition in a two dimensional way. If you want to place the filter next to the column header, than you need to structure your whole table in a different way, because you then need spanning of the body cells in some way.

If your question is to make the column header itself a dropdown for filtering, well try it out. You need to replace the default configuration with a custom one that shows the column header in DisplayMode#NORMAL and opens the filter dropdown on edit. And you will need to register some other DisplayConverter to always show the column header name instead of the filter string. And bringing that to work in combination with the filter logic might get complicated.
Re: Is it possible to put filter dropdown with column header ? [message #1782136 is a reply to message #1771003] Mon, 19 February 2018 11:39 Go to previous message
Gaurav Tripathi is currently offline Gaurav TripathiFriend
Messages: 41
Registered: September 2015
Member
Hi Dirk,
I need to place the filter icon on each column header. As soon as we click that icon I need to show drop-down filter. Something very similar to Excel functionality.
Previous Topic:Paste Data
Next Topic:NatTable Zooming
Goto Forum:
  


Current Time: Wed Sep 19 05:03:48 GMT 2018

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

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

Back to the top