PDA

View Full Version : Dynamically changing the parent of an element


2dc
02-12-2008, 06:45 AM
Hi!

I want to create a multiple levels tree and giving the possibility to the user to "filter" levels.

So for example, I want to only display elements of level 1, 3 and 4, so I filter the level 2.

But to do this, I have to "attach" level 3 elements to level 1 elements and destroy level 2 elements.

So my question is : how can I change dynamically the parent of an element?

I hope that I'm clear enough, sorry for my poor english!

Thanks in advance.

rcyeager
02-13-2008, 09:21 AM
I would go about this by manipulating the underlying XML data structure. Bound views automatically re-bind themselves when the underlying XML data changes.

Robert
http://www.qrowd.com
http://www.cooqy.com