Hi. The Next method will work only when the node it's applyed to has a parent node. If you want to iterate over top-level nodes you'd rather look for other way to do it.
Yes, it should. Actually from the structure you show I can hardly imagine a scenario when it could be required to call the Next() method on any top-level node ("Home", "RCL", and "Carousel"). Could you just tell what you need it for?
dynamicNode.Next() throws a argument exception
When I try to do a simple .next() I get the following error:
Parameter name: Node 1052 has been orphaned and doesn't belong to a DynamicNodeList
Why does it do that? The structure is like this
and I am calling the following code on the Home node:
Hi. The Next method will work only when the node it's applyed to has a parent node. If you want to iterate over top-level nodes you'd rather look for other way to do it.
So would it work if all the nodes were under a parent 'site' node then?
Yes, it should. Actually from the structure you show I can hardly imagine a scenario when it could be required to call the Next() method on any top-level node ("Home", "RCL", and "Carousel"). Could you just tell what you need it for?
is working on a reply...