Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » NatTable » Help on ComboBoxCellEditor
Help on ComboBoxCellEditor [message #1162698] Wed, 30 October 2013 15:05 Go to next message
Rajesh Arumugam is currently offline Rajesh ArumugamFriend
Messages: 24
Registered: October 2013
Junior Member
Greetings,

I need a small clarification on 'ComboBoxCellEditor'. I have created and registered configuration to a column, which renders the whole column as 'Combo box' with the required values. But, I need to do this for each cell, instead of doing it for all cells in that column.

For example, I have 2 columns like this in my table
Drinks Type| Brand

And Data like this:
Hot-- Coffee,Tea

Cold-- Pepsi,Coke.


I added 'ComboBoxCellEditor' to column 'Brand' with combo values 'Coffee','Tea'.But I need this combo values should be dynamic. ie based on user selection in 'Drinks Type' column which have 'comboboxcelleditor' rendering. So If user selects, 'Hot' in 'Drinks Type' column in the 1st row, 'Brand' column should show Coffee,PIN.2,Tea as combo value. If user selects 'Cold', then 'Brand' column should show Pepsi, Coke.

My question is whether its possible to add dynamic content to combo box cell editor for each cells in a column, instead of adding same values to all cells in that column. Please suggest me good approach to achieve this.
Re: Help on ComboBoxCellEditor [message #1163018 is a reply to message #1162698] Wed, 30 October 2013 19:41 Go to previous messageGo to next message
Dirk Fauth is currently offline Dirk FauthFriend
Messages: 2702
Registered: July 2012
Senior Member
Have a look at the documentation faq section:

http://www.eclipse.org/nattable/documentation.php?page=faq
icon14.gif  Re: Help on ComboBoxCellEditor [message #1164119 is a reply to message #1163018] Thu, 31 October 2013 12:55 Go to previous message
Rajesh Arumugam is currently offline Rajesh ArumugamFriend
Messages: 24
Registered: October 2013
Junior Member
Thanks Drik.. Its working fine.. Smile Smile
Previous Topic:Unable to change row positions, when they are sorted
Next Topic:clear data in colheader layer
Goto Forum:
  


Current Time: Wed Aug 21 11:37:53 GMT 2019

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

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

Back to the top