[Logo] Enterprise Client Community
  [Search] Search   [Recent Topics] Recent Topics   [Members]  Member Listing   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
FIXGRIDTreeBinding: after removing and reinserting a node the node appears twice  XML
Forum Index -> Development
Author Message
dkhaskin



Joined: 02/10/2020 12:48:40
Messages: 1
Offline

Hello Mr. Müller,

i have a FIXGRIDTreeBinding, where the parent- and childnodes come from cache directly into the tree. I want following: if a remove a node and persisit it i want to seinsert a new one (same name). my problem is: if i remove the node and call addSubNode( treeNode, true) the node appears twice in my tree (as first ABD last item).
Do you have any idea?

Best,

Denis Khaskin
CaptainCasa

Power User
[Avatar]

Joined: 21/11/2007 12:23:06
Messages: 5534
Offline

Hi,

could you add some code?

THanks! Björn

Björn Müller, CaptainCasa GmbH
CaptainCasa

Power User
[Avatar]

Joined: 21/11/2007 12:23:06
Messages: 5534
Offline

...after seeing the problem via screen sharing:

The constructor of the TreeNode (FIXGRIDTreeItem) already registers the instance in the parent. If calling "addSubNode()" afterwards, then it will be added twice. ;-)

Regards, Björn

Björn Müller, CaptainCasa GmbH
 
Forum Index -> Development
Go to:   
Powered by JForum 2.1.6 © JForum Team