Skip to main content



      Home
Home » Eclipse Projects » NatTable » Help on ComboBoxCellEditor
Help on ComboBoxCellEditor [message #1162698] Wed, 30 October 2013 11:05 Go to next message
Eclipse UserFriend
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 15:41 Go to previous messageGo to next message
Eclipse UserFriend
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 08:55 Go to previous message
Eclipse UserFriend
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: Sun Jul 27 05:05:43 EDT 2025

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

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

Back to the top