Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » NatTable » Same column having combo-box with two different list
Same column having combo-box with two different list [message #1773924] Fri, 06 October 2017 14:55 Go to next message
Gaurav Tripathi is currently offline Gaurav TripathiFriend
Messages: 43
Registered: September 2015
Member
Hi,

I have a situation in NatTable where one column which is having combo box cell editor should contain different types of list.
For example
Column ComboboxList
Row1 a {listitem1,listitem2}
Row2 b {listitem3,listitem4}
Row3 c {listitem1,listitem2}
when I click on "a" I should be able to see item1,item2
when I click on "b" I should be able to see item3,item4

How can this be done?
As I also want to do multi-edit same column using EditSelectionCommand,
but it's not working.

I have used two different config labels for the same column and registered it in columnLabelAccumulator for same column index. In configRegistry, I am passing same config labels.
Re: Same column having combo-box with two different list [message #1773942 is a reply to message #1773924] Fri, 06 October 2017 22:25 Go to previous messageGo to next message
Dirk Fauth is currently offline Dirk FauthFriend
Messages: 2902
Registered: July 2012
Senior Member
Well either register different ComboBoxCellEditors for your different labels or use an IComboBoxDataProvider as explained here: https://www.eclipse.org/nattable/documentation.php?page=faq

Does the multi edit work if you select multiple cells in that column and press F2?
Re: Same column having combo-box with two different list [message #1774005 is a reply to message #1773942] Mon, 09 October 2017 05:51 Go to previous message
Gaurav Tripathi is currently offline Gaurav TripathiFriend
Messages: 43
Registered: September 2015
Member
Thank you very much, Mr. Dirk.
I used the solution provided by you. I implemented IComboBoxDataProvider and it worked out.
Thanks again.
Previous Topic:SizeConfig doesd not invalidate cache when DPI converter is set
Next Topic:Sorting not proper for numeric values
Goto Forum:
  


Current Time: Thu Mar 28 08:19:54 GMT 2024

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

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

Back to the top