Tree item's object reference [message #457908] |
Wed, 06 July 2005 15:04 |
Sai [Srinivasan Sairam] Messages: 36 Registered: July 2009 |
Member |
|
|
Hello
We have an application where we have two trees (lets say, drag tree and
drop tree). A link line is created when the user drag an item from drag
tree and drop on to the drop tree. Since the tree can be huge (10,000 +
nodes), for the performance and optimization reasons, I cached the drag
and drop tree item object references (so that, on refresh, the links can
be redrawn quickly). Also there is a provision to add a new (tree) item
dynamically. Assume that there is a link drawn from item A to item B.
The problem is, if the user adds a new item C just above the item B, then
the newly added tree item is getting the object reference of item B and
the existing item B is getting new object reference. Because of this,
after the new item is added, the link is drawn from item A to C.
Any one has any suggestion / idea to handle this scenario in a correct way
..?
Thanks
Sai
|
|
|
Powered by
FUDForum. Page generated in 0.02212 seconds