2 TreeList bugs?

View: New views
2 Messages — Rating Filter:   Alert me  

2 TreeList bugs?

by fab|an :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

* I use a TreeList to display Categories, they are comparable, so "supercategories" will be reused.
When I add A->B and then A->B->C the following tree is created:

  A
    B
      C

When I add A->B->C and then A->B i get:

  A
    B
  A
    B
      C

Is that correct behaviour? Is TreeList even designed to have "data-items" which are virtual parents too, in other words are the data-items allowed to be a different depths?


* When adding A->B, then D->E, then A->C the following ListEvents are fired:

INSERT: 0 A
INSERT: 1 B
INSERT: 2 D
INSERT: 3 E
UPDATE: 0 A
INSERT: 2 C
UPDATE: 3 D     // unnecessary?

Regards
fabian

Re: 2 TreeList bugs?

by fab|an :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

fab|an wrote:
* I use a TreeList to display Categories, they are comparable, so "supercategories" will be reused.
When I add A->B and then A->B->C the following tree is created:

  A
    B
      C

When I add A->B->C and then A->B i get:

  A
    B
  A
    B
      C
I noticed that the problem occurs also when the depth of the two items is the same.
So adding A->B->C after A->B->D gives a different tree than vice versa.

I don't think I have a problem in my data models here, since I used the Location-Class from the TreeList tutorial to test the behaviour.