Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
165
SortByPosition
posted

Using NetAdvantage 2010 volume 2.

I want to display the list of selected nodes in the same order that they appear in the tree instead of the selected order which is the default behaviour.

The description of the function "SortByPosition" of the SelectedNodes collection is "Sorts the SelectedNodes collection such that members appear in the same order that they do in the tree."

So I would expect the nodes in the collection to be sorted in the same way that they appear in the tree from top-down but that does not seem to be the case.

In the following example, I would have expect the nodes to be sorted this way :

"Node0, Node6, Node8, Node10, Node3"

But the result is far different and I cannot figure the resulting sorting that is applied.

Is this a bug, or did I misunderstood the behaviour of that function?

Thanks

Sylvain