Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » NatTable » Multi Cell Editor (Multi Cell Editor - Different cells with Different LOV values)
Multi Cell Editor [message #1837284] Wed, 27 January 2021 06:43 Go to next message
Aswin Kumar is currently offline Aswin KumarFriend
Messages: 9
Registered: April 2019
Junior Member
Hi,

We have a NAT table with 2 columns, Each column has a separate LOV (Single value Combo) .

For Example, Column 1 has 1, 2, 3 as LOV values, Column 2 has a, b, c, d as LOV values.

Now when the user selects 1 cell from Column 1 and 1 cell from column 2 and hit any key in the keyboard, Multi Cell combo editor is opened and it shows the LOV of either Column 1 or Column 2. If the user selects any value from the combo the value was set on both the cells.

Our Requirement is, If user selects multiple cells across different column where each column has different LOV attached to it. We should not open the Multi Cell editor dialog. Since it will list only one of the LOV.

Is there any way to achieve this ?
Re: Multi Cell Editor [message #1837287 is a reply to message #1837284] Wed, 27 January 2021 07:32 Go to previous messageGo to next message
Dirk Fauth is currently offline Dirk FauthFriend
Messages: 47
Registered: March 2020
Member
I wonder why this is happening. How have you configured your editors? Typically you configure an editor per column if they are different. Since you say that you show different values per column, you should have different editor instances per column.

Multi-edit checks if the editor instances are the same. And if the editor instances are the same, it is assumed that the cells can be multi-edited. The check is done in EditUtils#isEditorSame().

BTW, the check (cellEditor != lastSelectedCellEditor) is intended and we are not using an equals() check by design.

That said, if you register a new editor instance per column, it should work as intended.

Re: Multi Cell Editor [message #1837292 is a reply to message #1837287] Wed, 27 January 2021 08:35 Go to previous messageGo to next message
Aswin Kumar is currently offline Aswin KumarFriend
Messages: 9
Registered: April 2019
Junior Member
Thanks Drik, As you pointed out, same editor instance is used for multiple column instead to of creating new instance.
Now we have moved the instance creation inside the for loop, it is working now.

Thanks for the quick reply
Re: Multi Cell Editor [message #1837293 is a reply to message #1837292] Wed, 27 January 2021 08:40 Go to previous messageGo to next message
Dirk Fauth is currently offline Dirk FauthFriend
Messages: 47
Registered: March 2020
Member
Quote:
Thanks Drik


Is it really so hard to spell my name correctly?
Re: Multi Cell Editor [message #1837300 is a reply to message #1837293] Wed, 27 January 2021 09:29 Go to previous message
Aswin Kumar is currently offline Aswin KumarFriend
Messages: 9
Registered: April 2019
Junior Member
Sorry Dirk !!!
Previous Topic:NatTable add header row cell
Next Topic:NatTable is not redrawn when ShowRowPositionsEvent is triggered
Goto Forum:
  


Current Time: Tue Apr 23 07:27:59 GMT 2024

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

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

Back to the top