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

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
new ComboBoxCellEditor(Arrays.asList(new String[] {"Value1", "Value2"} )),

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: 2824
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: Fri Sep 17 02:14:47 GMT 2021

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

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

Back to the top