Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » NatTable » Comobobx cells
Comobobx cells [message #1053325] Fri, 03 May 2013 21:44 Go to next message
Testr t is currently offline Testr tFriend
Messages: 93
Registered: April 2013
Member
Hi,

I am trying to use a Grid and some of the cells would be rendered as checkbox and combobox. I am able to configure with the cell label as mentioned in the documentation but for combobox, the values in the combobox for the cells have to be different. Currently I see that I have to set this in the configuration with predefined values as like this

//register a combobox editor for DisplayMode.EDIT
configRegistry.registerConfigAttribute(
EditConfigAttributes.CELL_EDITOR,
new ComboBoxCellEditor(Arrays.asList(new String[] {"Value1", "Value2"} )),
DisplayMode.EDIT,
"myComboBoxLabel");

Is there an option in the Nattable grid that I can use to provide dynamic values for the combobox? i.e When the view renders it and asks for values for the combobox for the column on a particular row?
Re: Comobobx cells [message #1053344 is a reply to message #1053325] Sat, 04 May 2013 07:23 Go to previous message
Dirk Fauth is currently offline Dirk FauthFriend
Messages: 2751
Registered: July 2012
Senior Member
Yes that is possible. You should find the example on how to do this in the faq section.
Previous Topic:Keyboard bindings failing with latest Eclipse 4
Next Topic:Simple Cell Editing
Goto Forum:
  


Current Time: Wed Dec 11 05:54:10 GMT 2019

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

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

Back to the top