Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » NatTable » multiple rows selected if adding some new rows
multiple rows selected if adding some new rows [message #1708110] Sun, 13 September 2015 20:47 Go to next message
Ralf Heydenreich is currently offline Ralf HeydenreichFriend
Messages: 225
Registered: July 2009
Senior Member
Hi all,
I've a strange behaviour on my list table. If I add a new element (via a
button outside the table) and click into the list table all seems to be
ok. But if I add another element, both rows are highlighted (and also
all further added rows). It seems, that NatTable can't distinguish
between the newly created elements (although they have a different
position number which I gave them on creation time).
Any hints are welcome.

TIA,
Ralf.
Re: multiple rows selected if adding some new rows [message #1708111 is a reply to message #1708110] Sun, 13 September 2015 20:57 Go to previous message
Ralf Heydenreich is currently offline Ralf HeydenreichFriend
Messages: 225
Registered: July 2009
Senior Member
Am 13.09.2015 um 22:47 schrieb Ralf Heydenreich:
> Hi all,
> I've a strange behaviour on my list table. If I add a new element (via a
> button outside the table) and click into the list table all seems to be
> ok. But if I add another element, both rows are highlighted (and also
> all further added rows). It seems, that NatTable can't distinguish
> between the newly created elements (although they have a different
> position number which I gave them on creation time).
> Any hints are welcome.
>
> TIA,
> Ralf.

Found it by myself... The mistake was that I used the id of the entities
for distinguishing (in IRowIdAccessor). But this id is always 0 if you
create a new entity. So, if you create multiple new entities they all
get the id 0. And thus NatTable can't distinguish between them. Solved
it by creating a unique position number.

Regards,
Ralf.
Previous Topic:Dynamic Filter in NatTable
Next Topic:Multiple Row Selection - Cursor Moves to the Next Column/Row Selected
Goto Forum:
  


Current Time: Sat Mar 06 23:09:20 GMT 2021

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

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

Back to the top