ILTree modifies my model

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

ILTree modifies my model

Bernat Romagosa
Hi list,

I'm using an ILTree to navigate through an OrderedCollection of objects that hold an OrderedCollection of objects each, and I realised that every time the trees are created, a ton of new ILTree objects are added into my model, even if I create the tree with a copy of the model, at which point I don't understand how an ILTree works anymore...

Any help would be appreciated, thanks!

Bernat Romagosa.
Reply | Threaded
Open this post in threaded view
|

Re: ILTree modifies my model

Nicolas Petton
AFAIK, trees are in fact a hierarchy of widgets and subwidgets, one for
each level in the tree.

The ILTree widget you create is just the root of these widgets.

HTH,
Nico

Le lundi 28 mars 2011 à 13:21 +0200, AxiNat a écrit :

> Hi list,
>
>
> I'm using an ILTree to navigate through an OrderedCollection of
> objects that hold an OrderedCollection of objects each, and I realised
> that every time the trees are created, a ton of new ILTree objects are
> added into my model, even if I create the tree with a copy of the
> model, at which point I don't understand how an ILTree works
> anymore...
>
>
> Any help would be appreciated, thanks!
>
>
> Bernat Romagosa.


Reply | Threaded
Open this post in threaded view
|

Re: ILTree modifies my model

Bernat Romagosa
It might be a bug, I'm not sure... since I'm not 100% aware of the way ILTrees should work I can't really tell.

In the meantime, and since in my app I only need simple one-level trees, I've started to write them myself.

Thanks anyway!

Bernat.

2011/3/28 Nicolas Petton <[hidden email]>
AFAIK, trees are in fact a hierarchy of widgets and subwidgets, one for
each level in the tree.

The ILTree widget you create is just the root of these widgets.

HTH,
Nico

Le lundi 28 mars 2011 à 13:21 +0200, AxiNat a écrit :
> Hi list,
>
>
> I'm using an ILTree to navigate through an OrderedCollection of
> objects that hold an OrderedCollection of objects each, and I realised
> that every time the trees are created, a ton of new ILTree objects are
> added into my model, even if I create the tree with a copy of the
> model, at which point I don't understand how an ILTree works
> anymore...
>
>
> Any help would be appreciated, thanks!
>
>
> Bernat Romagosa.