Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » NatTable » Filter multiple items in a dropdown.
Filter multiple items in a dropdown. [message #1001255] Wed, 16 January 2013 10:30 Go to next message
Renso Lohuis is currently offline Renso Lohuis
Messages: 44
Registered: July 2012
Member
I am working on filters in NatTable and I need a filter where I can select multiple items in a drop down to use in the filter.

Does anyone has an (example) implementation for that?
Re: Filter multiple items in a dropdown. [message #1001285 is a reply to message #1001255] Wed, 16 January 2013 11:54 Go to previous messageGo to next message
Dirk Fauth is currently offline Dirk Fauth
Messages: 1300
Registered: July 2012
Senior Member
Hi,

well in fact this addresses two things:

1. Having a combo box in NatTable that supports multiple selection
2. A filter that can handle this

Currently NatTable doesn't support such a combo box. I worked on that a few months ago, but haven't got time to merge this into NatTable core yet. I will do this in the next few weeks.
After that we can have a look on how filters are able to react on that.

So I am only able to tell you that you have to wait some time to get that feature. At least this is what I can tell you.

Greez,
Dirk
Re: Filter multiple items in a dropdown. [message #1001294 is a reply to message #1001285] Wed, 16 January 2013 12:16 Go to previous messageGo to next message
Renso Lohuis is currently offline Renso Lohuis
Messages: 44
Registered: July 2012
Member
Hi Dirk,

Thanks for your quick reply. That is correct.

Is it possible you post what you have till so far or maybe send me the code. Because I need to build such a thing at this moment.
Re: Filter multiple items in a dropdown. [message #1001319 is a reply to message #1001294] Wed, 16 January 2013 13:32 Go to previous messageGo to next message
Dirk Fauth is currently offline Dirk Fauth
Messages: 1300
Registered: July 2012
Senior Member
Hi,

as I'm planning to adjust and commit it to the NatTable, I can send you what I have. Posting here would be too much, as I reimplemented the whole NatCombo and ComboBoxCellEditor. The main deal is to merge what currently exists with the one I implemented to have one control that can be configured for single/multi selection.

Where to send those files?
Re: Filter multiple items in a dropdown. [message #1001332 is a reply to message #1001319] Wed, 16 January 2013 14:03 Go to previous messageGo to next message
Renso Lohuis is currently offline Renso Lohuis
Messages: 44
Registered: July 2012
Member
I just sent you an e-mail with my address. Thanks!
Re: Filter multiple items in a dropdown. [message #1005885 is a reply to message #1001332] Tue, 29 January 2013 08:36 Go to previous messageGo to next message
Dirk Fauth is currently offline Dirk Fauth
Messages: 1300
Registered: July 2012
Senior Member
Hi,

with the major edit refactoring I committed a ComboBoxCellEditor that supports multi selection. Feel free to check if it is working for you. It should also cover the cases on rendering like you wrote me by email.

Greez,
Dirk
Re: Filter multiple items in a dropdown. [message #1007059 is a reply to message #1005885] Mon, 04 February 2013 09:36 Go to previous messageGo to next message
Renso Lohuis is currently offline Renso Lohuis
Messages: 44
Registered: July 2012
Member
Great. I will check it out as soon as version 1.0.0 is released
Re: Filter multiple items in a dropdown. [message #1033491 is a reply to message #1001255] Thu, 04 April 2013 09:30 Go to previous messageGo to next message
Saket M is currently offline Saket M
Messages: 3
Registered: April 2013
Junior Member
Is ComboBoxCellEditor that supports multi selection available in the latest snapshot build for 1.0.0? If so what control needs to be configured to toggle single/multi selection
Re: Filter multiple items in a dropdown. [message #1033503 is a reply to message #1033491] Thu, 04 April 2013 09:38 Go to previous messageGo to next message
Dirk Fauth is currently offline Dirk Fauth
Messages: 1300
Registered: July 2012
Senior Member
Yes it is. Look at the ComboBoxCellEditor. There should be a constructor parameter for enabling multiselect. But I plan to push a change to that so it is not set by constructor but by setter instead soon.
Re: Filter multiple items in a dropdown. [message #1068905 is a reply to message #1033503] Sun, 14 July 2013 17:54 Go to previous messageGo to next message
Arye Shemesh is currently offline Arye Shemesh
Messages: 17
Registered: November 2012
Junior Member
Hi Dirk,

Quote:

"well in fact this addresses two things:

1. Having a combo box in NatTable that supports multiple selection
2. A filter that can handle this"



The combobox with multiple selection works great.
Is it supported in the filter row? I'm trying to use it but it keeps filtering out all the rows.

Thanks,
Arye
Re: Filter multiple items in a dropdown. [message #1069107 is a reply to message #1068905] Mon, 15 July 2013 07:16 Go to previous message
Dirk Fauth is currently offline Dirk Fauth
Messages: 1300
Registered: July 2012
Senior Member
Yes it is supported in the filter row. As stated in the New & Noteworthy page of 1.0.0, there is even a new filter row that works like Excel.

The reason why it might not work if you simply it to the filter row with further adjustments is that the logic is reverse to the usual filter row. On multiple selection you want to only SHOW the selected ones and FILTER all not selected, while with the usual filter row you FILTER everything that is not included.
Previous Topic:clear filter with tree grid
Next Topic:Adding image to the column cell in nat table
Goto Forum:
  


Current Time: Tue Sep 30 23:59:44 GMT 2014

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

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