Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » NatTable » Autocomplition in NatCombo
Autocomplition in NatCombo [message #1651716] Thu, 05 March 2015 13:18 Go to next message
Pooja Jain is currently offline Pooja JainFriend
Messages: 4
Registered: March 2015
Junior Member
I have designed Nattable wherein few cells in one column is combo editor instead of text editor. I have used ComboBoxCellEditor & comboBoxCellEditor.setFreeEdit(true) to achieve this.
Now my requirement is to show suggestions as per the text I'm entering in combo cell editor.
For Example: If my combo contains following items:
1. Jackson
2. Jackpot
3. Harry
4. Sheldon
and if I enter "J" in combo area, the natCombo should open dropdown of combo to show matching items. Like in this it should show 1st and 2nd item in the list.

Please let me know, whether such scenario is posible in NatTable.
If yes, Please advice how can I do this?
Re: Autocomplition in NatCombo [message #1651767 is a reply to message #1651716] Thu, 05 March 2015 13:52 Go to previous message
Dirk Fauth is currently offline Dirk FauthFriend
Messages: 2803
Registered: July 2012
Senior Member
NatCombo in its current state does not support such filtering logic. And I don't see a way to add such a feature without a major change. Currently the dropdown part of NatCombo is a SWT Table. This doesn't support an easy way for filtering. At least I don't know one. It would need to be changed to a JFace TableViewer which supports ViewerFilter.

Either implement your own NatCombo that uses a TableViewer instead of a Table. Modify the existing NatCombo and contribute the changes. Or try if you can implement an editor that uses a ComboViewer for example.
Previous Topic:Autocomplete feature in NatCombo
Next Topic:Sort only specific rows in nattable
Goto Forum:
  


Current Time: Wed Mar 03 06:30:04 GMT 2021

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

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

Back to the top